title: General purpose json serializer/deserializer in jQuery?
body: <p><strong>Duplicate:</strong> <a href="https://stackoverflow.com/questions/191881/serializing-to-json-in-jquery">Serializing to JSON in jQuery</a></p>
  
  <p>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?</p>
  
  <p>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?</p>
  
  <p>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 <a href="http://www.json.org/js.html" rel="nofollow noreferrer">that wasn't so good for security</a>:</p>
  
  <blockquote>
    <p>The eval function is very fast.
    However, it can compile and execute
    any JavaScript program, so there can
    be security issues</p>
  </blockquote>