I'm trying to write an application that will keep a data-structure on the viewer's application data.
I need to use json in order to convert the object to strings. If I try to use gadgets.json.stringify(_obj), as is offered in the openSocial guide ( http://code.google.com/apis/opensocial/docs/0.7/devguide.html ) I get an error from firebug - "gadgets.json has no properties". when I tried using the original methods of JSON, meaning - JSON.stringify() and JSON.eval() - I wasn't able to convert the object back to it's original form, probably because openSocial (as it said in the guide) performs automatic HTML escaping of all
returned data. I've tried using gadgets.util.unescapeString(jsondata) to unescape HTML formed by JSON.stringify() . it didn't work.
Can you please help? for instance -
Can you please publish a working example of updating my own data (meaning objects) using json, and retrieving it later?
Thanks,
Yoni.
Thanks,