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

How would i decode this table similar to JSON??

Asked by 7 years ago

this is the table:

{"meta":{"gold":35,"diamond":0},"data":[]} how would i be able to decode 'gold' ?

thanks

i'm not sure if this is JSON or not but i'm trying to decode it

1 answer

Log in to vote
0
Answered by 7 years ago

The game.HttpService:JSONDecode(string json) and its Encode function allow you to encode and decode JSON so that it can be sent over the internet. Http does not need to be enabled to use this, rather it is just a utility for HTTP.

Ad

Answer this question