Hi, i’m new and i don’t know how it works ,
i want to put a table in lua in the json,
so i have to encode my table to put it in json
My encoded table :
[
{
“y”: 70.833333333333,
“x”: 277.83333333333,
“name”: “voiture”,
“position”: “horizontale”
},
{
“y”: 334.16666666667,
“x”: 201.41666666667,
“name”: “camion”,
“position”: “verticale”
},
{
“y”: 334.16666666667,
“x”: 430.66666666667,
“name”: “voiture”,
“position”: “horizontale”
},
{
“y”: 334.16666666667,
“x”: 659.91666666667,
“name”: “camion”,
“position”: “verticale”
},
{
“y”: 202.5,
“x”: 965.58333333333,
“name”: “camion”,
“position”: “verticale”
},
{
“y”: 663.33333333333,
“x”: 201.41666666667,
“name”: “voiture”,
“position”: “verticale”
},
{
“y”: 729.16666666667,
“x”: 659.91666666667,
“name”: “camion”,
“position”: “horizontale”
},
{
“y”: 597.5,
“x”: 889.16666666667,
“name”: “voiture”,
“position”: “horizontale”
}
]
Where to put it in the json?
and i don’t know how to get back this table in lua