i did this:
function getData()
local fileo = fileOpen("test.json")
if fileo then
local data = fromJSON(fileRead(fileo,fileGetSize(fileo)))
local info = unpack(data)
for i,v in ipairs(info) do
outputConsole(tostring(info[i]))
end
end
end
addCommandHandler("getdata",getData)
[ [ [ 429, -2004.267578125, -388.42578125, 58.19026947021484, 340.86181640625, 347.5689697265625, 333.8140869140625, false ], [ 429, -2000.91015625, -381.4013671875, 40.339599609375, 240.677490234375, 3.7188720703125, 339.521484375, false ], [ 429, -1999.4091796875, -378.3544921875, 25.79038238525391, 345.78369140625, 4.41650390625, 358.2366943359375, false ] ] ]
it only retrieves the first array of the json, how i can get all?