[Project_owners] JSON and extensions

Eric H. Jung eric.jung at yahoo.com
Thu Mar 2 18:26:27 EST 2006


Has anyone successfully used JSON (http://www.json.org/json.js) with a Firefox/Mozilla extension?
It's a means to de/serialize (un/marshall) objects, in same vein as XML or RDF de/serialization.

The following works in an HTML page opened in Firefox, but not in an extension:

function MyClass() {
  this.foo = "foo";
alert(JSON.stringify(new MyClass()));

Thanks for any suggestions,

More information about the Project_owners mailing list