Categorygithub.com/sunshine69/gopher-json
modulepackage
0.0.0-20221024001855-6c6de212e5bf
Repository: https://github.com/sunshine69/gopher-json.git
Documentation: pkg.go.dev

# README

gopher-json GoDoc

Package json is a simple JSON encoder/decoder for gopher-lua.

UPDATE

This is a fork of https://github.com/layeh/gopher-json but I do not intend to create merge request as it is a bit intrusive. WHat has been done:

  • Create go.mod file to be compatible with new go version
  • Use jsoniter for higher performance

License

Public domain

# Functions

Decode converts the JSON encoded data to Lua values.
DecodeValue converts the value to a Lua value.
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.