I couldn’t find any comprehensive examples of parsing json in juce especially when there was an array involved.
This is the json I need to parse.
{“total”:2,“notes”:[{“id”:6,“title”:“note 6”},{“id”:5,“title”:“note 5”}]}
I can get the total easy enough by doing this.
var jsonReply = JSON::parse(results);
String total= jsonReply.getProperty(“total”, var()).toString();
Not sure if that is even the right way to do that. But I have no idea how to get the array of objects out.
Any help would be appreciated.