• Manipulation of JSON data strings.

Static methods

staticdecode(json:String, ?options:Null<JsonEncodingOptions>):Table<String, Dynamic>

  • Decode a string of JSON data into a Lua table. A Lua error is raised for syntax errors.

Parameters:

json

json data

options

table with decode options

Returns:

decoded json

staticencode(tbl:Table<String, Dynamic>, ?options:Null<JsonEncodingOptions>):String

  • Encode a lua table to a JSON string. A Lua error is raised for syntax errors.

Parameters:

tbl

lua table to encode

options

table with decode options

Returns:

encoded json