We are trying to fetch a JSON-object and display it using a list view. However, we struggle with parsing the JSON-object. Please have a look at the attached image. If we’ve understood correctly, Thunkable interprets the JSON-object from the GET-request as a string, which has to be converted to an object using the corresponding function. That one is not supported by the “for each in”-function. The JSON-object as is now will to be parsed by the “for each item j in…”-function, which at the moments moves trough the JSON-object character by character.
What we are trying to accomplish, is getting the JSON from the server, display the keys in a list view, have the user tap one and the select the appropriate value from the JSON-object which is in turn sent back to the server via a new GET-request.
Hi there. Do you have a picture of the raw output that your JSON object is in? This will help us understand what the appropriate parsing method might be.
We want to loop trough it as display each key as a button in the list viewer. When pressed, the function should return the associated value. As far as we’ve understood, the get property-function only reads one value by giving it the key.