Can someone explain the use of JSONEncode/Decode

Is it too simply hide data that you are transferring between two points?

I feel like im slightly over thinking what it is

1 Like

JSON Encode/Decode can be used to, for instance, use different web APIs which use JSON. You can encode lua tables into json and then decode json into lua tables.

2 Likes

JSONEncode/Decode is useful for HTTP requests as it transfers lua data such as tables to JSON format (objects/arrays)

2 Likes

That’s simple,
Encode is convert table to string.
Decode is convert string to table.

1 Like