I have been trying all morning to use a simple JSON statement just to learn how to pull data from that kind of source. I found this example in another thread. The only difference is that perhaps the old example used the previous version of Thunkable where the “get property of object block”?
Here is my sample JSON which is hardcoded into the block.
When I click the button in liveview it just clears the test area.
What am I missing here? I started with an actual Airtable API, everything connects fine, but trying to pull objects from it keeps giving me undefined. So I went to the most simple example I could find and I cannot get this to work.
It looks the same as yours, right? There must be something missing in yours, though.
Your JSON includes brackets which designate a list. So when you’re retrieving the data, you’d have to first get the first list item of app data and then get the third item of that list and then get the property (“category”) of that item.
Also, you’ve initialized app data as a list but then turned it into an object. I don’t think you can do list manipulation on objects.
Thank you, that was very helpful! I really thought I was losing my mind for a while. If the JSON data is not properly formatted, it stops the whole show.