Module xw.json
JSON encoder/decoder
Usage:
local json = require 'xw.json'
Type bool
Type xw.json
xw.json.decode(json_string) |
|
xw.json.encode(lua_table_or_value, pretty) |
|
Type bool
Type xw.json
Field(s)
- xw.json.decode(json_string)
-
decode data structures serialised in JSON
Parameter
#string json_string
:
Return value
#table:
- xw.json.encode(lua_table_or_value, pretty)
-
encode data structures in JSON
Parameters
#table lua_table_or_value
:#bool pretty
: if true output is pretty printed
Return value
#string: