Module lib.json

Helper functions to encode and decode json strings to tables

Functions

encode (val) Encode table to a JSON string
decode (str) Decode JSON string to a table


Functions

encode (val)
Encode table to a JSON string

Parameters:

  • val table to be encoded

Returns:

    JSON encode string
decode (str)
Decode JSON string to a table

Parameters:

  • str JSON string

Returns:

    table
generated by LDoc 1.4.6 Last updated 2021-01-05 19:47:36