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

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

    committed Mar 25, 2011
    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").
    true
    2> json:encode(<<"\"">>).
    {ok,<<"\"\\\"\"pri">>}
    3> json:encode(<<"\"">>).
    {ok,<<"\"\\\"\"_se">>}
    4> json:encode(<<"\"">>).
    {ok,<<"\"\\\"\"ist">>}
    5> json:encode(<<"\"">>).
    {ok,<<"\"\\\"\"los">>}
    6> json:encode(<<"\"">>).
    {ok,<<34,92,34,34,0,0,0>>}
    7>
  3. Fix the numbers test

    committed Mar 25, 2011
    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.
  4. On encode, return a tagged tuple

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

    committed Mar 25, 2011
    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
    list_to_float("1.0e2")
  6. On decoding success return {ok, EJson}

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

    committed Mar 24, 2011
    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).
Commits on Mar 24, 2011
  1. Changed JSON encoding to to use for strings only

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

    Damien Katz committed Mar 23, 2011
    … reverse via and and converting to the final ejson value inside erlang, doing the numberparsing inside erlang.
Commits on Mar 11, 2011
  1. @davisp

    Fix error for upgrades and reloads.

    davisp committed Mar 11, 2011
    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.
Commits on Feb 16, 2011
  1. @davisp
Commits on Feb 15, 2011
  1. @davisp

    Use src/json.app.src instead of ebin/json.app

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

    Updating rebar.

    davisp committed Feb 15, 2011
Commits on Sep 15, 2010
  1. @davisp

    Added Basho's compatibility header.

    davisp committed Sep 14, 2010
    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.
Commits on May 28, 2010
  1. @davisp

    Fix search for priv directory.

    davisp committed May 27, 2010
Commits on Apr 8, 2010
  1. @davisp
Commits on Apr 7, 2010
  1. @davisp

    Adding a JSON fuzzer.

    davisp committed Apr 7, 2010
Commits on Apr 6, 2010
  1. @davisp

    Added a .gitignore

    davisp committed Apr 6, 2010
  2. @davisp

    Edits to EEP0018

    davisp committed Apr 6, 2010
  3. @davisp

    Import EEP text for editing.

    davisp committed Apr 6, 2010
  4. @davisp

    Include a README.

    davisp committed Apr 6, 2010
  5. @davisp

    NIF style eep0018 import.

    davisp committed Apr 6, 2010
  6. @davisp
Commits on Mar 9, 2010
  1. @davisp

    Rewrote the Erlang module according to the guide.

    davisp committed Mar 9, 2010
    Thanks to Zhou Li <echou327@gmail.com>
  2. @davisp

    Add a bootstrap script.

    davisp committed Mar 9, 2010
  3. @davisp

    fixed data corruption bug for large strings

    unknown committed with davisp Mar 7, 2010
Commits on May 17, 2009
  1. @davisp

    Major updates to eep0018

    davisp committed May 17, 2009
    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.
Commits on Feb 22, 2009
  1. @davisp
Commits on Jan 26, 2009
  1. @davisp
  2. @davisp
Commits on Dec 28, 2008
  1. @davisp
Commits on Dec 27, 2008
  1. @davisp
Something went wrong with that request. Please try again.