TradePatio uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy.

Module 'json'

Module 'json'

Used for JSON serialization.

Functions:

encode(obj: table) return: result: string, error: string

Encodes table (obj) in JSON string (result). If encoding is impossible, it returns an error message.


decode(json: string) return: obj: table, error: string


Decodes JSON string into table (obj). If decoding is not possible, it returns an error message.