Lua CJSON is a fast JSON encoding/parsing module for Lua
C Lua Makefile Shell CMake Perl
Latest commit e8972ac Aug 25, 2016 @mpx Add README.adoc for Github
Permalink
Failed to load latest commit information.
devel Add original JSON parser design outline Dec 20, 2011
lua Update cjson.util to workaround missing "unpack" Aug 25, 2016
tests Make sparse array test immune to table hash order Aug 25, 2016
.gitattributes Add .gitignore for object files, html, extra dirs Dec 20, 2011
.gitignore Convert perf results to HTML and update for 2.0.0 Mar 4, 2012
CMakeLists.txt Work around MSVC's C99 support Aug 24, 2016
LICENSE Update copyright date range to include 2012 Mar 4, 2012
Makefile Use more common adoc extension for AsciiDoc Aug 24, 2016
NEWS Add release notes for 2.1.0 release Mar 4, 2012
README.adoc Add README.adoc for Github Aug 25, 2016
THANKS Update THANKS for locale bug reporter Nov 27, 2011
TODO Remove old TODO item Aug 25, 2016
build-packages.sh Use more common adoc extension for AsciiDoc Aug 24, 2016
dtoa.c Use Javascript compat values for Infinity/NaN Mar 4, 2012
dtoa_config.h Add error checking to dtoa locking primitives Mar 4, 2012
fpconv.c Fix build with g++ Apr 13, 2016
fpconv.h Fix clang undefined-inline warning Apr 12, 2016
g_fmt.c Fix string length returned by g_fmt.c for |x|<1 Mar 4, 2012
lua-cjson-2.1devel-1.rockspec Bump version to 2.1devel Mar 4, 2012
lua-cjson.spec Use more common adoc extension for AsciiDoc Aug 24, 2016
lua_cjson.c CJSON_EXPORT for msvc Aug 24, 2016
manual.adoc Update manual Aug 25, 2016
performance.adoc Use more common adoc extension for AsciiDoc Aug 24, 2016
rfc4627.txt Initial commit Apr 15, 2011
runtests.sh Bump version to 2.1devel Mar 4, 2012
strbuf.c Fix build with g++ Apr 13, 2016
strbuf.h Update copyright date range to include 2012 Mar 4, 2012

README.adoc

Lua CJSON

The Lua CJSON module provides JSON support for Lua.

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 (infinity, NaN,..)

  • No dependencies on other libraries

Caveats
  • UTF-16 and UTF-32 are not supported

Lua CJSON is covered by the MIT license. Review the file LICENSE for details.

Please read manual.adoc for installation instructions and the API manual.

The current stable version of this software is available from the Lua CJSON website.

Feel free to email me if you have any patches, suggestions, or comments.