Module:JSON/doc: Difference between revisions

From Guild of Archivists
m (1 revision imported)
 
(No difference)

Latest revision as of 07:26, 30 October 2015

This module exposes two functions:

encode( o )[edit]

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

decode( json_string )[edit]

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