lua json的解析和编译
参考
摘要(Synopsis)
local cjson = require "cjson"
-- Module instantiation
-- 实例化模块
local cjson2 = cjson.new()
local cjson_safe = require "cjson.safe"
-- Translate Lua value to/from JSON
text = cjson.encode(value)
value = cjson.decode(text)
-- Get and/or set Lua CJSON configuration
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 cjson_saf
版权声明:本文为qq_32292967原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。