Parsing a JSON table results in seemingly blank Lua Tables?

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

image

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!

I think exactly “blank” are not, see if you have Log mode or Show Memory Address for Tables enabled in the output.

2 Likes

Where do I enable those features?

It is in the output tab
image

Yup, I found it just as I sent that. Turns out I was just referencing the information wrong. Thanks for your help!

1 Like