So i have a multi-dimensional lua table and when I encode it then write it to a file, it encodes differently than it decodes. Example:
[lua]local t = {}
t[1] = {}
t[1][1] = {}
t[1][1].data = “string”
local contents = json.encode( t )
local newTable = json.decode(contents)
local data = newTable[“1”][1].data --I have to wrap the first dimension around quotes in order
–to access the data. But before it’s encoded I don’t. If I don’t
–wrap it in quotes, it throws an error.[/lua]
I’m using trial build 704 so I tried manually including the new dkjson library into my project but it still doesn’t work. [import]uid: 63320 topic_id: 25671 reply_id: 325671[/import]