Hey guys,
I am using a JSON list which gets decoded into a lua table in my code. I am using that data to build a list of text objects. (Very similar to what you would use a Table view for)
All works well except that the order of the text items from my JSON list is not in the same order that it is in the original JSON string. It doesn’t seem to randomize each time I run my app, but its just never in order. Can anyone give me an idea of why this is happening and how I can get my JSON string to keep its order?
This is the code I am using to cycle through my decoded JSON string to get the data I need:
for key,value in pairs(featureTable) do //Build a text object here end