You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using BasicFormats.FloatJsonFormat to serialize 1.85f of type Float yields 1.850000023841858 in the resulting JSON.
This is caused by the fact that JsNumber has no apply for Float, just for Double.
Proposal: add JsNumber.apply(Float).
Worst thing here is that there is no way to override/hide implicit BasicFormats.FloatJsonFormat since it's an object and not a value.
The text was updated successfully, but these errors were encountered:
Using
BasicFormats.FloatJsonFormat
to serialize1.85f
of typeFloat
yields1.850000023841858
in the resulting JSON.This is caused by the fact that
JsNumber
has noapply
forFloat
, just forDouble
.Proposal: add
JsNumber.apply(Float)
.Worst thing here is that there is no way to override/hide implicit
BasicFormats.FloatJsonFormat
since it's an object and not a value.The text was updated successfully, but these errors were encountered: