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.
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.
- JSON jsonResources = jsonData.getArray("media_resources");
could probably be
- JSON jsonResources = jsonData.getJSON("media_resources");
But both work just fine. =)