Documentation ¶
Overview ¶
Package json implements json decode/encode functionality for lua. original code: https://github.com/layeh/gopher-json
Index ¶
- func CheckJSONDecoder(L *lua.LState, n int) *json.Decoder
- func CheckJSONEncoder(L *lua.LState, n int) *json.Encoder
- func Decode(L *lua.LState) int
- func Encode(L *lua.LState) int
- func LVJSONDecoder(L *lua.LState, decoder *json.Decoder) lua.LValue
- func LVJSONEncoder(L *lua.LState, encoder *json.Encoder) lua.LValue
- func Loader(L *lua.LState) int
- func Preload(L *lua.LState)
- func TableIsObject(L *lua.LState) int
- func ValueDecode(L *lua.LState, data []byte) (lua.LValue, error)
- func ValueEncode(value lua.LValue) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Preload ¶
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")
func TableIsObject ¶
TableIsObject lua json.tableIsObject marks a table as an object (to distinguish between [] and {})
func ValueDecode ¶
ValueDecode converts the JSON encoded data to Lua values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.