json.json.decode
Declaration
lua
json.decode(json_string)
Description
Decode JSON string to Lua table. Auto-repairs trailing commas, multiple root objects.
Parameters
`json_string` (string)
Return Values
`table`, or `nil, error`
Example
lua
local t = json.decode('{"a":1}')