Commits on Mar 25, 2011
  1. Deal more gracefully with different OTP releases

    Explicit error when compiling against OTP R13B03 and deal with versions
    post-R14A in the same way as R14A.
    committed Mar 25, 2011
  2. Fix string encoding

    The string encoding was failing due to incorrect buffer allocations.
    Besides fixing the string encoding, it also makes the code more simple.
    The encoder also throws now an exception when the string encoding fails.
    Previous failure example:
    Erlang R14B01 (erts-5.8.2) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
    Eshell V5.8.2  (abort with ^G)
    1> code:add_path("ebin").
    2> json:encode(<<"\"">>).
    3> json:encode(<<"\"">>).
    4> json:encode(<<"\"">>).
    5> json:encode(<<"\"">>).
    6> json:encode(<<"\"">>).
    committed Mar 25, 2011
  3. Fix the numbers test

    Note, json:encode(2.4234324) produces <<"2.42343">> and not <<"2.4234324">>.
    The later can be produced using the mochinum.erl module, but apparently not
    by C's snprintf %g formatter.
    committed Mar 25, 2011
  4. On encode, return a tagged tuple

    This is mostly to make existing tests pass and not break the API.
    committed Mar 25, 2011
  5. Fix decoding of floats

    For some odd reason, Erlang's list_to_float needs a list that contains a '.'.
    For example, list_to_float("1e2") fails - it must be invoked as
    committed Mar 25, 2011
  6. On decoding success return {ok, EJson}

    This is mostly to make all tests succeed and avoid breaking the
    existing API.
    committed Mar 25, 2011
  7. Re-added old error return values

    Mostly to avoid the test failures. Also because they add a little bit
    of extra useful information (number of bytes consumed until the parsing
    error occurred).
    committed Mar 24, 2011
Commits on Mar 24, 2011
  1. Changed JSON encoding to to use for strings only

    Damien Katz committed Mar 24, 2011
  2. Added support for parsing big nums by spitting out the token token in…

    … reverse via and and converting to the final ejson value inside erlang, doing the numberparsing inside erlang.
    Damien Katz committed Mar 24, 2011
Commits on Mar 11, 2011
  1. Fix error for upgrades and reloads.

    If the reload and upgrade functions are NULL they will cause any
    attempt at reloading or upgrading the NIF to fail. We don't have
    any sort of state that needs to be managed so simple definitions
    that simply return 0 should be all that's required.
    davisp committed Mar 11, 2011
Commits on Feb 16, 2011
Commits on Feb 15, 2011
  1. Use src/ instead of ebin/

    This was requested to allow rebar to use eep0018 as a depdency.
    davisp committed Feb 15, 2011
  2. Updating rebar.

    davisp committed Feb 15, 2011
Commits on Sep 15, 2010
  1. Added Basho's compatibility header.

    This should now compile on both R13 and R14. I haven't got an R13 vm
    handy so if someone wants to spot check, that'd be cool.
    davisp committed Sep 15, 2010
Commits on May 28, 2010
  1. Fix search for priv directory.

    davisp committed May 28, 2010
Commits on Apr 8, 2010
Commits on Apr 7, 2010
  1. Adding a JSON fuzzer.

    davisp committed Apr 7, 2010
Commits on Apr 6, 2010
  1. Added a .gitignore

    davisp committed Apr 6, 2010
  2. Edits to EEP0018

    davisp committed Apr 6, 2010
  3. Import EEP text for editing.

    davisp committed Apr 6, 2010
  4. Include a README.

    davisp committed Apr 6, 2010
  5. NIF style eep0018 import.

    davisp committed Apr 6, 2010
Commits on Mar 9, 2010
  1. Rewrote the Erlang module according to the guide.

    Thanks to Zhou Li <>
    davisp committed Mar 9, 2010
  2. Add a bootstrap script.

    davisp committed Mar 9, 2010
  3. fixed data corruption bug for large strings

    unknown committed with davisp Mar 7, 2010
Commits on May 17, 2009
  1. Major updates to eep0018

    Switched the build system to use Autotools. Lots of cribbing from Noah's work.
    Changed the implementation to use an unmodified yajl library which is still
    builit inline.
    davisp committed May 17, 2009
Commits on Feb 22, 2009
Commits on Jan 26, 2009
Commits on Dec 28, 2008
Commits on Dec 27, 2008