Skip to content
Commits on Jun 2, 2011
  1. @vinoski
  2. @vinoski

    fixes for json2.erl and json.erl (Nico Kruber)

    vinoski committed Jun 1, 2011
    Implement more precise floating point number conversions -- avoid
    converting via io_lib:format/2 by using erlang:float_to_list/1. Fix
    encoding lists of (small) floats (json.erl mistakenly tried to convert
    them to strings). Fix/add encoding of lists to {array, List}. Handle
    unicode in object keys.
Commits on Apr 24, 2011
  1. @vinoski

    replace json.erl with json2.erl to fix issue 50

    vinoski committed Apr 24, 2011
    Yaws issue 50 (#50) notes that
    the json.erl module uses list_to_atom and is therefore dangerous due
    to the possibility of filling the atom table. Also, the test function
    in json.erl has been broken for quite some time. Deprecate json.erl
    and add json2.erl, which avoids list_to_atom. Repair the json2:test/0
    function inherited from json.erl and add it to the t1 test
    suite. Change www/json_intro.yaws to refer to json2.
Something went wrong with that request. Please try again.