I’m trying to parse a JSON table that I’m hosting on a site and turn it into a Lua table.
Here’s what the table looks like in JSON form.
{
"text": [
"Welcome to BloxParty!"
],
"color": [
62, 62, 62
]
}
Running the code below displays the following console output.
local response = HttpService:GetAsync(url)
local data = HttpService:JSONDecode(response)
local message = data.text
for i,v in pairs(data) do
print(i,v)
end
I’ve spent a couple of hours trying to fix this and haven’t been able to figure out anything. All I can say about it is that the tables are blank. How do I fix this issue?
Thanks!