Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Does roblox automatically convert this to a lua dictionary/array?

Asked by 5 years ago

I'm using the public RoVer api right now, and it returns a table like this : {"status":"ok","robloxUsername":"evaera","robloxId":92658764} and I need to know if roblox automatically converts this table to a dictionary or not, if not, is there a way.

1
That looks like JSON. Yes, it can convert it. HttpService has a function named JSONDecode: its first argument should be a string containing the JSON. It returns the converted table. pidgey 548 — 5y
1
Put that in an answer so I can accept it, ty SuperSamyGamer 316 — 5y

1 answer

Log in to vote
2
Answered by
pidgey 548 Moderation Voter
5 years ago

That looks like JSON. Yes, it can convert it. HttpService has a function named JSONDecode: its first argument should be a string containing the JSON. It returns the converted table.

Ad

Answer this question