How to flatten an object

If I understand you correctly, then the problem actually is that Thunkable Lists are half cooked objects. That is why your JSON validator cannot recognize it as true JSON. If you add a square bracket [ ] at the beginning and end of the JSON produced from the list then your validator should accept it.

This is the same reason why Firebase has issues saving Thunkable Lists.

Hope this answers your question.

1 Like

I put square brackets and json validator told me ok

it’s a nice demonstration of sharing and passion

Merci

1 Like

I’m glad this solved the issue.

[More Explanation]

If the list is simple like all numbers
image

Then you can use the generate JSON from object which will converted to a JSON acceptable list.
For example
These blocks will show numbers
image
image

But these blocks will show a proper list
image
image

Notice the brackets are added automatically. Unfortunately this does not happen when you use JSON string as elements of the list.

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