What it’s producing:
[null,{"admin":{"Charm{\"id\":\"Royalty\",\"tn\":1}":1}},{"Fishing":{"":1},"StairwayToHeaven":{"":1}},{"Fishing":{"":6.2666709423065189},"StairwayToHeaven":{"":6.2336671352386479}}]
The correct json (ignore the fact that it’s prettyprinted)
{
"2": {
"admin": {
"Charm{\"id\":\"Royalty\",\"tn\":1}": 1
}
},
"3": {
"Fishing": {
"": 1
},
"StairwayToHeaven": {
"": 1
}
},
"4": {
"Fishing": {
"": 6.2666709423065186
},
"StairwayToHeaven": {
"": 6.2336671352386475
}
}
}
data is defined in lua as:
local queue: {[number]: {[string]: {[string]: number}}} = {}
It’s incorrectly treating the table as an array.