Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Processing 2.0 beta 8 and JSONObject

$
0
0
In the new version of the lib JSON can be both JSONArray or a JSONObject. That's handled internally, so both sets of methods needs to be available.

The length (or size) function should be there. I just forgot to add it - it's fixed now. Download it again and you should be set to go.

f.y.i.

  1. JSON jsonResources = jsonData.getArray("media_resources");
could probably be
  1. JSON jsonResources = jsonData.getJSON("media_resources");

But both work just fine. =)




Viewing all articles
Browse latest Browse all 1768

Trending Articles