json.decode(string)

解析 JSON 编码字符串,并以表形式返回结果。

对 JSON 编码字符串进行解码时,JSON null 值将以特殊值 json.NULL 写入输出表,因为无法将 null 值存储在 Lua 表中。

示例
t = json.decode('{"a":123,"b":456}')