Duplicate: http://stackoverflow.com/questions/191881/serializing-to-json-in-jquery
It seems there's a JSON serializer/deserializer built into jQuery, since it's able to implement things like .getJSON . Is it possible to use the built in jQuery JSON processor itself a general purpose JSON processor (ie. make a jQuery.something() call to serialize/deserialize my own data), removing the need for a separate JSON library?
Update: The responses in the question referenced above say there's no JSON serialization code in jQuery. How about JSON deserialization? How is .getJSON implemented, and why isn't the deserialization capability exposed for general use?
Update2: I'm already using json2 from json.org , I'm trying to get rid of it as all I'm doing is simple deserialization. Sounds like jquery really is just doing eval? I had the impression that wasn't so good for security:
The eval function is very fast. However, it can compile and execute any JavaScript program, so there can be security issues