Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can some explain how DecodeJSON works?

1 answer

✓ Accepted answer

JSON is a format for storing JavaScript objects.

These objects have strings as keys and values which are strings, numbers, booleans, or other JSON objects.

If you build a table with strings as keys, then it is equivalent to a JSON object.

JavaScript has a standard of representing these objects in strings that can be encoded and decoded. ROBLOX's decode and encode functions do this; essentially it means

encode(someTableObject) is someString;

decode(someString) is someTableObject

1 comment

0

thx m8 +1

This discussion is preserved as it was. New answers, comments, and votes are closed.