aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* feature: set cjson.array_mt on decoded JSON arrays.2.1.0.6rc1Thibault Charbonnier2017-11-173-6/+113
| | | | | | | this can be turned on via cjson.decode_array_with_array_mt(true). off by default. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* feature: added new cjson.array_mt metatable to allow enforcing JSON array ↵Thibault Charbonnier2017-11-153-21/+155
| | | | | | encoding. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* travis: skipped the std lua 5.1 interpreter tests.Yichun Zhang (agentzh)2017-11-151-1/+1
|
* tests: now we use luajit to run the test suite.Yichun Zhang (agentzh)2017-11-154-5/+12
|
* travis-ci: run LuaJIT tests against openresty/luajit2 -b v2.1-agentzh.Thibault Charbonnier2017-05-291-5/+20
| | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* bugfix: fixed a -Wsign-compare compiler warning.gnought2017-04-101-1/+1
| | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* bugfix: conditionally build luaL_setfuncs() function as the latest LuaJIT ↵2.1.0.5Datong Sun2017-04-051-2/+3
| | | | v2.1 already includes it. fixes #21.
* feature: supports MS C compiler older than VC2012.spacewander2017-01-314-1/+22
| | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* bugfix: preserve 'empty_array_mt' behavior upon multiple loadings of the module.Thibault Charbonnier2016-12-172-5/+40
| | | | | | | | | | | | | Prior to this fix, when the module would be loaded several times (by-passing `package.loaded`), the `lua_cjson_new` function would override the `empty_array_mt` table in the registry with a new one. Comparison for equality between those tables would then fail, and the behavior would be broken. This was discovered after loading `cjson` *and* `cjson.safe` in the same application, resulting in two calls to `lua_cjson_new`. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* chore: ignored the generated test_case.lua file.Thibault Charbonnier2016-12-171-0/+1
| | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* bugfix: fixed compilation errors from the Microsoft C compiler.Tim Chen2016-11-061-0/+6
| | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
* Merge pull request #13 from chipitsine/masterYichun Zhang2016-10-111-4/+6
|\ | | | | travis-ci: bugfix, now we fail on either test
| * travis-ci: bugfix, now we fail on either testIlya Shipitsin2016-10-101-4/+6
|/
* Merge pull request #10 from chipitsine/masterYichun Zhang2016-10-071-3/+12
|\ | | | | travis-ci: move package management to "apt" plugin
| * travis-ci: move package management to "apt" pluginIlya Shipitsin2016-10-071-3/+12
|/
* travis-ci: added valgrind testing mode as well.2.1.0.4Yichun Zhang (agentzh)2016-05-151-2/+5
|
* travis-ci: run our new tests as well.Yichun Zhang (agentzh)2016-05-151-0/+3
|
* Merge pull request #8 from chipitsine/masterYichun Zhang2016-04-242-24/+2
|\ | | | | cpcheck added, rpmbuild test removed
| * removed rpmbuild testIlya Shipitsin2016-04-241-23/+0
| | | | | | it does not sense to test rpmbuild that way, it should be either rewritten or removed
| * cppcheck added on buildIlya Shipitsin2016-04-241-1/+2
|/
* .travis.yml: removed line trailing spaces.Yichun Zhang (agentzh)2016-04-211-1/+1
|
* Merge pull request #7 from chipitsine/masterYichun Zhang2016-04-112-4/+27
|\ | | | | travis-ci integration
| * travis-ci integrationIlya Shipitsin2016-04-112-4/+27
|/
* docs: add a README with fork infosThibault Charbonnier2016-03-141-0/+124
|
* feat: cjson.as_array metamethod to enforce empty array encodingThibault Charbonnier2016-03-032-5/+108
| | | | | | | | | | | | | | A proposed improved patch of openresty/lua-cjson#1 (a patch commonly proposed to lua-cjson and its forks), taking into considerations comments from the original PR. - use a lightuserdata key to store the metatable in the Lua Registry (more efficient and avoiding conflicts) - provide a lightuserdata resulting in empty arrays as well - tests cases moved to t/agentzh.t, where cases for 'encode_empty_table_as_object' are already written. It seems like a better place for tests specific to the OpenResty fork's additions. - a more complex test case
* Merge pull request #5 from thibaultCha/fix/16-digit-precisionYichun Zhang2016-02-261-1/+1
|\ | | | | fix 16 decimal number encoding assertion
| * fix 16 decimal number encoding assertionThibault Charbonnier2016-02-261-1/+1
|/
* feature: now we allow up to 16 decimal places in JSON number encoding via ↵2.1.0.3Brandon2015-11-043-2/+17
| | | | | | | | cjson.encode_number_precision(). thanks lordnynex for the patch in #4. Test cases for changing precision
* tests: made the valgrind testing mode more obvious.Yichun Zhang (agentzh)2015-11-041-0/+1
|
* fixed the warning "inline function ‘fpconv_init’ declared but never ↵2.1.0.3rc2Yichun Zhang (agentzh)2015-11-011-1/+1
| | | | defined" from gcc.
* Makefile: removed the slash (/) after $(DESTDIR) so as to support empty ↵2.1.0.3rc1Yichun Zhang (agentzh)2015-10-301-13/+13
| | | | DESTDIR and relative path values in the following variable.
* bugfix: the Makefile had a bug that overwrites existing cjson.so file in ↵2.1.0.2Yichun Zhang (agentzh)2014-08-171-0/+1
| | | | place which could cause already running nginx workers to crash. thanks ywsample for the report.
* added one passing test.Yichun Zhang (agentzh)2014-03-311-0/+11
|
* feature: applied Jiale Zhi's patch to add the new config function ↵2.1.0.1Yichun Zhang (agentzh)2014-02-183-1/+124
| | | | encode_empty_table_as_object so that we can encode empty Lua tables into empty JSON arrays.
* updated .gitignore to make it vim friendly.Yichun Zhang (agentzh)2014-02-181-0/+3
|
* Add commented PREFIX for Solaris make buildsMark Pulford2012-03-041-1/+2
| | | | | Add a commented PREFIX to the Solaris build section since Lua is usually installed outside of the default include/link directories.
* Use Javascript compat values for Infinity/NaNMark Pulford2012-03-044-15/+26
| | | | | Use Javascript compatible values for Infinity/NaN when encoding invalid numbers.
* Add release notes for 2.1.0 release2.1.0Mark Pulford2012-03-043-1/+8
|
* Bump version to 2.1develMark Pulford2012-03-047-13/+13
|
* Work around Solaris make limitationsMark Pulford2012-03-041-5/+8
| | | | | Remove ?= and := assignment operators from the Makefile since they are not supported by Solaris make.
* Work around Solaris awk limitationsMark Pulford2012-03-041-3/+4
| | | | | | Work around Solaris awk limitations: - Limit line lengths to 2500 bytes - Use "count > 0" instead of "count" for test expression
* Add cjson.safe module to suppress exceptionsMark Pulford2012-03-043-12/+94
| | | | Add cjson.safe module to suppress exceptions during JSON conversions.
* Update release date for 2.0.0 to 22 Jan 20122.0.0Mark Pulford2012-03-044-4/+4
|
* Update NEWS for 2.0.0 releaseMark Pulford2012-03-041-4/+13
|
* Add changelog extra to RPM spec for 2.0.0Mark Pulford2012-03-041-4/+8
|
* Remove ENABLE_CJSON_GLOBAL optionMark Pulford2012-03-043-8/+0
| | | | | Remove ENABLE_CJSON_GLOBAL option since it is not recommended or necessary and doesn't need to be discussed in the manual.
* Escape tilde characters in documentationMark Pulford2012-03-042-6/+6
|
* Update manual for clarity and consistencyMark Pulford2012-03-041-189/+234
|
* Update performance documentation for clarityMark Pulford2012-03-041-24/+44
|
* Update LuaRocks/RPM descriptionsMark Pulford2012-03-042-8/+8
|