Commits on Feb 18, 2014

  1. feature: applied Jiale Zhi's patch to add the new config function enc…

    …ode_empty_table_as_object so that we can encode empty Lua tables into empty JSON arrays.
    agentzh committed Feb 18, 2014

Commits on Mar 31, 2014

  1. added one passing test.

    agentzh committed Mar 31, 2014

Commits on Aug 18, 2014

  1. bugfix: the Makefile had a bug that overwrites existing cjson.so file…

    … in place which could cause already running nginx workers to crash. thanks ywsample for the report.
    agentzh committed Aug 18, 2014

Commits on Oct 30, 2015

  1. Makefile: removed the slash (/) after $(DESTDIR) so as to support emp…

    …ty DESTDIR and relative path values in the following variable.
    agentzh committed Oct 30, 2015

Commits on Nov 1, 2015

Commits on Nov 4, 2015

  1. feature: now we allow up to 16 decimal places in JSON number encoding…

    … via cjson.encode_number_precision().
    
    thanks lordnynex for the patch in #4.
    
    Test cases for changing precision
    lordnynex authored and agentzh committed Nov 4, 2015

Commits on Feb 26, 2016

  1. Merge pull request #5 from thibaultCha/fix/16-digit-precision

    fix 16 decimal number encoding assertion
    agentzh committed Feb 26, 2016

Commits on Mar 3, 2016

  1. feat: cjson.as_array metamethod to enforce empty array encoding

    A proposed improved patch of openresty#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
    thibaultcha committed Mar 3, 2016

Commits on Mar 14, 2016

  1. docs: add a README with fork infos

    thibaultcha authored and agentzh committed Mar 14, 2016

Commits on Apr 11, 2016

  1. travis-ci integration

    chipitsine committed Apr 11, 2016

Commits on Apr 12, 2016

  1. Merge pull request #7 from chipitsine/master

    travis-ci integration
    agentzh committed Apr 12, 2016

Commits on Apr 21, 2016

Commits on Apr 24, 2016

  1. cppcheck added on build

    chipitsine committed Apr 24, 2016
  2. removed rpmbuild test

    it does not sense to test rpmbuild that way, it should be either rewritten or removed
    chipitsine committed Apr 24, 2016

Commits on Apr 25, 2016

  1. Merge pull request #8 from chipitsine/master

    cpcheck added, rpmbuild test removed
    agentzh committed Apr 25, 2016

Commits on May 16, 2016

Commits on Oct 7, 2016

  1. Merge pull request #10 from chipitsine/master

    travis-ci: move package management to "apt" plugin
    agentzh committed Oct 7, 2016

Commits on Oct 10, 2016

Commits on Oct 11, 2016

  1. Merge pull request #13 from chipitsine/master

    travis-ci: bugfix, now we fail on either test
    agentzh committed Oct 11, 2016

Commits on Nov 7, 2016

  1. bugfix: fixed compilation errors from the Microsoft C compiler.

    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    momofarm authored and agentzh committed Nov 7, 2016

Commits on Dec 18, 2016

  1. chore: ignored the generated test_case.lua file.

    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    thibaultcha authored and agentzh committed Dec 18, 2016
  2. bugfix: preserve 'empty_array_mt' behavior upon multiple loadings of …

    …the module.
    
    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>
    thibaultcha authored and agentzh committed Dec 18, 2016

Commits on Jan 31, 2017

  1. feature: supports MS C compiler older than VC2012.

    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    spacewander authored and agentzh committed Jan 31, 2017

Commits on Apr 5, 2017

  1. bugfix: conditionally build luaL_setfuncs() function as the latest Lu…

    …aJIT v2.1 already includes it. fixes #21.
    dndx authored and agentzh committed Apr 5, 2017

Commits on Apr 10, 2017

  1. bugfix: fixed a -Wsign-compare compiler warning.

    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    gnought authored and agentzh committed Apr 10, 2017

Commits on May 29, 2017

  1. travis-ci: run LuaJIT tests against openresty/luajit2 -b v2.1-agentzh.

    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    thibaultcha authored and agentzh committed May 29, 2017

Commits on Nov 16, 2017

  1. feature: added new cjson.array_mt metatable to allow enforcing JSON a…

    …rray encoding.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    thibaultcha authored and agentzh committed Nov 16, 2017

Commits on Nov 17, 2017

  1. feature: set cjson.array_mt on decoded JSON arrays.

    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>
    thibaultcha authored and agentzh committed Nov 17, 2017
  2. bugfix: fixed the C compiler warning "SO C90 forbids mixed declaratio…

    …ns and code" on older operating systems.
    agentzh committed Nov 17, 2017

Commits on Jan 3, 2018

  1. optimize: improved forward-compatibility with older versions of Lua/L…

    …uaJIT.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    thibaultcha authored and agentzh committed Jan 3, 2018

Commits on Apr 19, 2018

  1. bumped version to 2.1.0.6.

    agentzh committed Apr 19, 2018

Commits on Apr 27, 2018

  1. luarocks: bumped version to 2.1.0.6.

    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    moonming authored and agentzh committed Apr 27, 2018

Commits on Oct 17, 2018

  1. feature: ported to the ARM64 platform by masking off the bits higher …

    …than 47-bit in the lightud.
    
    Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
    spacewander authored and agentzh committed Oct 17, 2018

Commits on Dec 7, 2018

Commits on Mar 24, 2020

  1. feature: add option to disable forward slash escaping

    Thanks @spacewander for optimization and documentation.
    Jesper Lundgren authored and spacewander committed Mar 24, 2020

Commits on Apr 25, 2020

  1. Lua 5.2+ unpack support

    leafo committed Apr 25, 2020
  2. Lua 5.2+ maxn support

    leafo committed Apr 25, 2020
  3. fail if tests are blocked

    leafo committed Apr 25, 2020