Library json

JSON library

Functions

decode (s) Convert JSON string to table
encode (tbl) Convert table to JSON string


Functions

json_library.decode (s)
Convert JSON string to table

Parameters:

  • s: String to decode

Return value:

    Table representing the JSON object
json_library.encode (tbl)
Convert table to JSON string

Parameters:

  • tbl: Table to encode

Return value:

    JSON encoded string representation of the table

Valid XHTML 1.0!