Lua CJSON provides fast JSON parsing and encoding support for Lua. It
has been tested under Linux, FreeBSD, OSX, Solaris and Windows.
Features:
- Fast, standards compliant encoding/parsing routines.
- Full support for JSON with UTF-8, including decoding surrogate pairs.
- Optional run-time support for common exceptions to the JSON specification
(NaN, Infinity,..).
- No external dependencies.
WWW: https://www.kyne.com.au/~mark/software/lua-cjson.php
USES=lua gained flavors.
Ports using USES=lua:module or lua:flavors will be flavored. A range of
supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ)
for ports not supporting all lua versions.
USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of
flavored lua ports, in a similar way as PHP or Python flavors.
PR: 245038
Submitted by: andrew tao11 riddles org uk
Reviewed by: mat, kevans, russ haley gmail com
Approved by: mat (portmgr)
Differential Revision: https://reviews.freebsd.org/D16494
devel/lua-cjson: set USES to default lua version (5.2).
Also clone a slave port as lua51-cjson.
Reviewed by: feld, mat
Approved by: feld, mat (mentors)
Differential Revision: https://reviews.freebsd.org/D9810