package
0.0.0-20221118014540-79c50470ff02
Repository: https://github.com/syhlion/glua-libs.git
Documentation: pkg.go.dev

# README

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

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValueDecode converts the JSON encoded data to Lua values.
ValueEncode returns the JSON encoding of value.