Categories | Question details Back To List | ||
how to set userdata with JSON string I encounter some problems with loadJSONObject() method in how to construct the JSON string to include user data. As I know, the user data is perfectly supported by loadXML() via a xml tag, '<userdata>', but I don't know how to do that with loadJSONObject() and JSON string. Can someone help me out? Thank you. Answer posted by Support on Feb 26, 2008 04:05 JSON reflect structure of XML object, so it will be {id:0,item:[ {id:1,text:"1111", userdata: [{ name:"some_name", content:"some_value"}] } ]} Answer posted by oscarml on Jan 15, 2009 04:55 Hi, I'm having problems with getuserdata + json. I've send next json: {"item": Answer posted by Support on Jan 15, 2009 07:35 Change userdata syntax to the "userdata":[{"name":"tel","content":"ddd"}] with such way of data declaration it will work correctly. |