Open ymv opened 10 years ago
New decode option number_format - when set to decimal, numbers with exponent or fraction are decoded to erlang-decimal compatible tuple. For original behaviour omit this option or set it to float
number_format
decimal
float
{1,12,5} = jsonx:decode(<<"-1.2e6">>, [{number_format, decimal}]).
New decode option
number_format
- when set todecimal
, numbers with exponent or fraction are decoded to erlang-decimal compatible tuple. For original behaviour omit this option or set it tofloat