Commits on Nov 1, 2013
  1. Don't escape slash on encode

    committed Nov 1, 2013
Commits on Mar 4, 2012
  1. @mpx

    Add commented PREFIX for Solaris make builds

    Add a commented PREFIX to the Solaris build section since Lua is
    usually installed outside of the default include/link directories.
    mpx committed Mar 3, 2012
  2. @mpx

    Use Javascript compat values for Infinity/NaN

    Use Javascript compatible values for Infinity/NaN when encoding invalid
    numbers.
    mpx committed Mar 3, 2012
  3. @mpx
  4. @mpx

    Bump version to 2.1devel

    mpx committed Mar 1, 2012
  5. @mpx

    Work around Solaris make limitations

    Remove ?= and := assignment operators from the Makefile since
    they are not supported by Solaris make.
    mpx committed Feb 19, 2012
  6. @mpx

    Work around Solaris awk limitations

    Work around Solaris awk limitations:
    - Limit line lengths to 2500 bytes
    - Use "count > 0" instead of "count" for test expression
    mpx committed Feb 19, 2012
  7. @mpx

    Add cjson.safe module to suppress exceptions

    Add cjson.safe module to suppress exceptions during JSON conversions.
    mpx committed Feb 2, 2012
  8. @mpx
  9. @mpx

    Update NEWS for 2.0.0 release

    mpx committed Jan 16, 2012
  10. @mpx
  11. @mpx

    Remove ENABLE_CJSON_GLOBAL option

    Remove ENABLE_CJSON_GLOBAL option since it is not recommended or
    necessary and doesn't need to be discussed in the manual.
    mpx committed Jan 22, 2012
  12. @mpx
  13. @mpx
  14. @mpx
  15. @mpx

    Update LuaRocks/RPM descriptions

    mpx committed Jan 21, 2012
  16. @mpx

    Force binary file mode in util.lua

    Force binary file mode in util.lua to fix the utf8.dat test under
    Windows.
    mpx committed Jan 21, 2012
  17. @mpx
  18. @mpx
  19. @mpx
  20. @mpx
  21. @mpx
  22. @mpx
  23. @mpx

    Bump version to 2.0devel

    Bump version to 2.0devel due to significant changes and updated API
    (runtime config not fully backwards compatible).
    mpx committed Jan 20, 2012
  24. @mpx

    Simplify string.format() calls

    Simply string.format() calls with OO method notation.
    mpx committed Jan 19, 2012
  25. @mpx

    Fix runtests.sh after API change and file moves

    Fix runtests.sh after:
    - "util" module moved to lua/cjson
    - "version" removed
    mpx committed Jan 19, 2012
  26. @mpx

    Create separate tests for numbers w/leading zeros

    Create separate tests for numbers with leading zeros. This allows the
    earlier "normal" number test to pass. Also update hexadecimal test to use
    the "p" exponent format.
    mpx committed Jan 19, 2012
  27. @mpx

    Fix string length returned by g_fmt.c for |x|<1

    Fix string length returned by built in fpconv_g_fmt() so it doesn't
    include the trailing null when converting numbers |x|<1.
    mpx committed Jan 19, 2012
  28. @mpx

    Reserve stack slot for luaL_error() during encode

    Unlike "decode", encoding leaves both the key/value on the stack before
    descending. This leaves no spare room for luaL_error() in case the depth
    check or lua_checkstack() fails. Allocate an extra stack slot to ensure there is always room for
    luaL_error() in json_check_encode_depth().
    
    Note: this would not have caused a crash or fault due to the EXTRA_STACK
    slot reserve, but it was a misuse of the Lua C API.
    mpx committed Jan 19, 2012
  29. @mpx

    Add an RPM %preun script to remove utf8.dat

    Add an RPM %preun script to remove utf8.dat. Otherwise the user
    generated test file will cause RPM to leave behind the cjson/tests
    module directories.
    mpx committed Jan 19, 2012
  30. @mpx

    Remove deprecated "refuse_invalid_numbers"

    Remove deprecated "refuse_invalid_numbers" since the version number will
    be bumped to 1.1.0.  Also remove "version" variable since it has been
    replaced by _VERSION.
    mpx committed Jan 19, 2012
  31. @mpx

    Bump development version to 1.1devel

    mpx committed Jan 19, 2012
  32. @mpx

    Disable registration of cjson global variable

    Disable registration of cjson module table global variable in the
    default build. Automatically creating a variable in the global namespace
    can cause issues for other software and is no longer recommended with
    Lua.
    mpx committed Jan 19, 2012
  33. @mpx

    Return boolean values from configuration functions

    Return boolean values from configuration functions to simplify usage in
    the common case. Eg,:
    	if not cjson.encode_invalid_numbers() then .. end
    mpx committed Jan 18, 2012
  34. @mpx