在go中使用lua示例, 基于gopher-lua!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
maike 81d90a1d80 初始化 4 vuotta sitten
..
README.md 初始化 4 vuotta sitten
api.go 初始化 4 vuotta sitten
api_test.go 初始化 4 vuotta sitten
loader.go 初始化 4 vuotta sitten
value.go 初始化 4 vuotta sitten

README.md

json

origin code: https://github.com/vadv/gopher-lua-libs/tree/master/json

Usage

local json = require("json")

-- json.encode()
local jsonString = [[
    {
        "a": {"b":1}
    }
]]
local result, err = json.decode(jsonString)
if err then error(err) end

-- json.decode()
local table = {a={b=1}}
local result, err = json.encode(table)
if err then error(err) end