Difference between revisions of "Module:JSON/doc"

From RobotX
Jump to navigation Jump to search
Mediawiki>ATDT
(Document exported functions)
(No difference)

Revision as of 07:26, 19 March 2013

This module exposes two functions:

encode( o )

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

decode( json_string )

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