package
Version:
v0.0.0-...-6c2e20b
Opens a new window with list of versions in this module.
Published: Sep 12, 2021
License: MIT, 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.
Documentation
¶
func Decode(L *lua.LState, data []byte) (lua.LValue, error)
Decode converts the JSON encoded data to Lua values.
func DecodeValue(L *lua.LState, value interface{}) lua.LValue
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.
func Encode(value lua.LValue) ([]byte, error)
Encode returns the JSON encoding of value.
func Loader(L *lua.LState) int
Loader is the module loader function.
func Preload(L *lua.LState)
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.