loadJSONArray in Android mode fails

edited November 2013 in Android Mode

Hello

I am trying to load a .json file using loadJSONArray in Android mode but I keep getting a "cannot find symbol" error. Everything works fine in Java mode...

Thanks in advance for any help provided.

Tagged:

Answers

  • I have the same error gtrianta. I hope someone comes up with a fix. I have been pondering over it for days now. . . :(

  • As a newbie I have no idea why loadJSONArray doesn't work on Android but there is a work-around. Load the JSON as strings and then parse it afterwards like this: String lines[] = loadStrings("your JSON URL in here"); JSONArray json = JSONArray.parse(lines[0]);

Sign In or Register to comment.