I'm hand-throwing a bunch of AJAX & JSON code (can't use open source without a hassle) and wondered about the line I found in several JSON examples. (Had to write "evil" for "e v a l" to get by the Ranch's h4x0r filters.)
Any reason not to say ...
Two questions in one post ... sorry about this ... This is a tiny internal application so I'm not too concerned about somebody putting bogus code into my response, but I'd like to code for it anyhow. I read about putting a header on the JSON
string and writing your JavaScript to pull it off before the evil(). Any other good approaches?