returns: undefined
(Todays nightly 8.0a1, Built from http://hg.mozilla.org/mozilla-central/rev/58101c64c83c)
Is that a known problem?
Honza
Thanks!
Honza
Yeah, nsIJSON.decode and nsIJSON.encode have been removed. They're basically equivalent to JSON.parse and JSON.stringify, and the nitpicky ways they differed made it necessary to grunge up the standard-JS implementation of that functionality. But why bother, if the pure-JS stuff did the same thing? So they're removed now, in TM and m-c.
Due to a misunderstanding the TM merge of the change missed the 7 train, but it looks like the process to address that means we did later merge it to aurora, so the two removals should happen in Firefox 7. I've poked addons people about scanning for it when determining addon compatibility and for addition to documentation lists and such. It should be simple for addon authors to make the switch if they need to do so.
Jeff