BUG: JSON.parse() does not support arrays on Android
txt = '{"a": [5,6]}';
JSON.parse(txt);
This renders it pretty much useless for me.
<rant>I tried searching to see if someone had posted about this before, but the search keeps timing out with gateway errors. I also had to log in again yet again - why is the cookie timeout so short? Please consider making it longer, or at least fix your login page so that Chrome can automatically remember my login details.
</rant>
4 Answers
-
Accepted Answer
Hey Damien
I just recently pushed a fix for this in HEAD.. can you try a recent build from our nightly build page and let me know if that fixes your problem?
http://drop.io/titanium_android_nightly -
After getting my DB going again with that .mp3 trick (odd it wasn't necessary in 1.2.0), your .parse() changes do appear to be working fine. Thanks for the quick response, and sorry for being a bit of a grouch - though it would be great if that login issue were fixed at one point. :-)
-
txt = '{"a": [5,6]}'; JSON.parse(txt); eval('('+txt+')')
I'm currently encountering this same issue with Titanium SDK 1.7.2 and Android SDK Revision 12 with Titanium Studio.
Both of the above parses return:
[Ljava.lang.Object;@43fd4198
Any help would be greatly appreciated. Thanks!
-
25