JSON

Use the JSON module to encode and decode Lua tables to and from JSON strings.

Note: For faster performance, and to avoid raising execution count errors with large amounts of data, use RapidJSON instead.

To use the JSON module, add the following line to your script:

require("json")

Portions of this topic are reprinted under permission of the JSON4Lua license.