|
Alan, Mark Gibson has alreay hacked the json.js into a jQuery plug-in. I'm using it in my application, right now. It provides two new functions: $.toJSON() and $.parseJSON(). Maybe this is what you're looking for? Here's a link to his code. If it's broken for some reason, let me know. I've got a copy of the plug-in. http://jollytoad.googlepages.com/json.js Cheers, Chris Dotan Dimet wrote: I've got an earlier version of the JSON.org script (copyright 2005) which has a JSON.stringify()function. You can find it online in various places, by searching for either that or its "license" terms: "The Software shall be used for Good, not Evil." http://www.google.com/codesearch?q=+%22The+Software+shall+be+used+for+Good,+not+Evil.%22+doc:SRy1HnJfh24&sa=N&cd=1&ct=ri&cs_p=http://thefigtrees.net/lee/sw/demos/calendar/download.tgz&cs_f=calendar/resources/json/json.js Alan Gutierrez wrote:I'd like to serialize Objects, Arrays, Strings, Booleans, Dates, and Numbers (the basics) to JSON. With Prototype, I'd used the json.js library from JSON.org. http://www.json.org/json.js This library extends the base objects, which breaks the latest Google Maps API and jQuery to boot. Can anyone suggest a JSON serialization library that doesn't extend the base objects? Otherwise, would anyone be interested in such a thing?_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/ |
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
