Module 'json'
![](/static/img/que-resp-il.png)
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.
2019 All rights reserved