Discover Packages
github.com/HannesLueer/gopher-json
package
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Sep 25, 2023
License: Unlicense
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
gopher-json
Package json is a simple JSON encoder/decoder for gopher-lua .
It is based on gopher-json from layeh and adds the functionality to encode sparse arrays.
License
Public domain
Expand ▾
Collapse ▴
Documentation
¶
Decode converts the JSON encoded data to Lua values.
DecodeValue converts the value to a Lua value.
This function only converts values that the encoding/json package decodes to.
All other values will return lua.LNil.
Encode returns the JSON encoding of value.
Loader is the module loader function.
Preload adds json to the given Lua state's package.preload table. After it
has been preloaded, it can be loaded using require:
local json = require("json")
Source Files
¶
Click to show internal directories.
Click to hide internal directories.