API return JSON puzzle

Which endpoint are you using? GPT-4 isn’t super fast for me but the responses come back in a few seconds usually.

Oh… interesting… the JSON response actually contains the word “array”. This is why having the full text and not just a screenshot is so important when troubleshooting APIs. This is what I see when I paste your JSON text into https://codebeautify.org/jsonviewer:

As you can see, the “greeting” property has a path (at the top) that is array[1].greeting (Thunkable indexes lists starting at 1 whereas APIs typically start arrays at 0). You can either use that as the property name or you can modify your existing blocks to get the first list item of the property “array” and then from that get the property “greeting”.

1 Like