Skip to content

json

JSON on top of lua-cjson.

json.decode(text: string): any

Decodes a JSON string to a Lua value.

json.encode(value: any): string

Encodes a Lua value to a JSON string.

json.parse(text: string): any

Alias of decode.

json.stringify(value: any): string

Alias of encode.