Json API
Overview
Operation
Description
JSON → Lua: json.parse / json.decode
json.parse / json.decodevalue, err = json.parse(string)
value, err = json.decode(string)Parameters
Returns
Lua Type Mapping
JSON
Lua
Example
Invalid JSON example
Lua → JSON: json.stringify / json.encode
json.stringify / json.encodeParameters
Returns
Supported Lua Types
Lua
JSON
Array vs Object Detection
Example
Mixed Tables
Round-Trip Example
Null Handling
Error Handling
Summary
Functions Provided
Function
Description
Last updated