1.5.0 (2025-03-07)
Breaking Changes
JsonNumber
previously would usefloat
when the floating point number was small enough to fit infloat
but it
now aligns behavior withJsonReader.readUntyped()
wheredouble
will be the smallest floating point type used.
This aligns with floating point number behavior in Java wheredouble
is the default if no type is specified.- Support for special numeric
INF
,-INF
, and+INF
values have been removed to align with behaviors ofFloat
andDouble
in Java where only theInfinity
variants are supported.
Bugs Fixed
JsonReader.readUntyped()
had incomplete support for untyped numerics. Numerics too large fordouble
andlong
are
now supported and a bug where exponents were not being parsed correctly is fixed.