Hybrid View
-
21 Feb 2008 9:51 AM #1
toJSONString giving error
toJSONString giving error
Hi all,
I am new to this JSON stuff and this is what i am trying, but not succeeding in doing it,
var arr = { "one": [{ "firstname": "raj","lastname": "shyam"}], "two": [{"empno": "123","empname": "g.karthik"}, {"empDeptId": "124","empBranchName": "mec"}]}
alert(arr .toJSONString());
But this toJSONString() is throwing me an error, saying that toJSONString is not a function.
Do we need to put any extra js files to serialize the JSON data.
Any suggestions.
-
22 May 2008 6:57 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
Try Ext.decode or Ext.encode (read the docs)

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote