Module:JSON/doc

From Guild of Archivists
< Module:JSON
Revision as of 07:26, 30 October 2015 by Alahmnat (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:JSON

This module exposes two functions:

encode( o )[edit source]

Returns the table / string / boolean / number / nil / json.null value as a JSON-encoded string.

decode( json_string )[edit source]

Returns a Lua object populated with the data encoded in the JSON string json_string.