Parsing JSON - How do I get key pair values?

Hi
I am using the http://ai2.appinventor.mit.edu/reference/other/json-web-apis.html template to learn about parsing JSON data. The data is coming via a thingspeak account giving feeds from my greenhouse. https://api.thingspeak.com/channels/1327025/fields/2.json

I can get the channel data fine, but I am struggling to parse the data as its inside square brackets. How would I need to parse to just get the field data?

Thanks

Again use the look for pair key and walk at every level with the name fields

1 Like

Feeds is an array so try this

When working with json you could use jsonparseronline.com to better visual the structure of your json

3 Likes

Thanks so much for that! and thanks for the weblink too. I need to learn more.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.