BarryOg
7 Jul 2007, 2:43 PM
I'm passing the following string to the Ext.util.json.decode()
["","111","1112asdf","1112asdfgfg","1112asdfgfg324","21342","2134252","213425223342","213425223342b"
,"213425223342c","2222222222222","3333424","asdf","asdffdsa","asdfsafdasdffffffffffffff","attack","bang"
,"barry","barrytest","cats","catsrats","easdfsafdasdfffffffffffff","fear","fill it up","hello","it works"
,"it works alright","jack","japan","muppet","player1","sleepIsForWeak","sometimes slow","take your hat
off","test","whatdoyouknow","while(1){}","zzz"]
but its only returning a string not an array object. I've encoded this string on the other side using php 5.2's built in json encode method, and from my knowledge of json it appears to be formatted right, am I doing something wrong here?
["","111","1112asdf","1112asdfgfg","1112asdfgfg324","21342","2134252","213425223342","213425223342b"
,"213425223342c","2222222222222","3333424","asdf","asdffdsa","asdfsafdasdffffffffffffff","attack","bang"
,"barry","barrytest","cats","catsrats","easdfsafdasdfffffffffffff","fear","fill it up","hello","it works"
,"it works alright","jack","japan","muppet","player1","sleepIsForWeak","sometimes slow","take your hat
off","test","whatdoyouknow","while(1){}","zzz"]
but its only returning a string not an array object. I've encoded this string on the other side using php 5.2's built in json encode method, and from my knowledge of json it appears to be formatted right, am I doing something wrong here?