integrates nicefloats into jsx

This commit is contained in:
alisdair sullivan 2011-03-22 18:53:02 -07:00
parent 0c3dbaab6c
commit 32c9a1f00f
11 changed files with 39 additions and 180 deletions

View file

@ -221,7 +221,7 @@ list_to_events([], Acc) ->
term_to_event(List) when is_list(List) ->
term_to_events(List);
term_to_event(Float) when is_float(Float) ->
[{float, nicefloats:format(Float)}];
[{float, jsx_utils:nice_decimal(Float)}];
term_to_event(Integer) when is_integer(Integer) ->
[{integer, erlang:integer_to_list(Integer)}];
term_to_event(String) when is_binary(String) ->