lua json的解析和编译
参考
摘要(Synopsis)
local cjson = require "cjson"
local cjson2 = cjson.new()
local cjson_safe = require "cjson.safe"
text = cjson.encode(value)
value = cjson.decode(text)
setting = cjson.decode_invalid_numbers([setting])
setting = cjson.encode_invalid_numbers([setting])
keep = cjson.encode_keep_buffer([keep])
depth = cjson.encode_max_depth([depth])
depth = cjson.decode_max_depth([depth])
convert, ratio, safe = cjson.encode_sparse_array([convert[, ratio[, safe]]])
模块实例化(Module Instantiation)
local cjson = require "cjson"
local cjson2 = cjson.new()
local cj