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

how do I decode json?

Asked by 9 years ago

I need help decoding json

my current code:

local json = game.HttpService:GetAsync("jsonlink") --removed
local decoded = json:decode()

it isnt working

2 answers

Log in to vote
4
Answered by
BlastNet 250 Moderation Voter
9 years ago

You need to use the decode function of HttpService. Example:

local t = game.HttpService:JSONDecode(json)
0
ohhhhhh thanks dude. your like the only person i see. lol ilolallthetime 70 — 9y
Ad
Log in to vote
2
Answered by
Tutoola 20
9 years ago

Use HttpService's JSONDeocde function.

0
i know the guy above told me ilolallthetime 70 — 9y
0
I gurantee this noob is only there for the extra 2 rep he just got. obcdino 113 — 9y

Answer this question