Question: What would the following JSON table look like in Lua?

{
    "thing":0,
    "other":[{
        "stuff":0
    }]
}

Because I’m either not searching properly or what, I have no idea what this would look like in Lua, especially the part with the square brackets. I’d rather not continue manually writing JSON strings and instead, be able to make actual lines which I can send to JSONEncode.

it’d look like this:

{
     thing = 0,
     other = {
          {stuff = 0}
     }
}

the square brackets just represent an array

3 Likes