I want to get the Hello information but I only get the nill information, I'm sure I'm doing it wrong can anyone help me?
"table": {
"code_one": 113,
"code_descriptions": [
"hello world"
],
"code_two": 0
}
}
Server-side
fetchRemote("[...]",
function(data)
local result = fromJSON(data)
local code = tonumber(result["table"]["code_one"])
local descriptions = tonumber(result["table"]["code_descriptions"])
print(code) -- its work, show 113
print(descriptions) -- not working, show nill value
end,
nil, true)