On Aug 31, 5:26 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > > Mark Gibson wrote a lightweight jQuery plugin with $.toJSON() and > > $.parseJSON(): > >http://jollytoad.googlepages.com/json.js > > Actually, Douglas "JSON" Crockford wrote the original code, so it's been > well tested and proven: > > http://www.json.org/js.html > > Unfortunately, Doug's original code adds the toJSON and parseJSON to > Object.prototype, which breaks jQuery and a lot of other code. Mark changed > them into standalone functions (in the jQuery/$ namespace), making the code > compatible with jQuery. (Thanks, Mark!)
Actually, we're currently using Crockford's json.js script as well as a couple of XML and JSON helper objects by Yusuke Kawasaki[1]. We did have to go back and fix all of our object iterators, inserting .hasOwnProperty() wherever necessary. We're enriching the client-side experience moving forward, though (yay!), so Mark's code is something on my "Implement Post Haste" list after we officially include our selected toolkits (currently MS Ajax and jQuery). Pyro [1] http://www.kawa.net/xp/index-e.html