nmorel / gwt-jackson

gwt-jackson is a JSON parser for GWT. It uses Jackson 2.x annotations to customize the serialization/deserialization process.
Apache License 2.0
111 stars 55 forks source link

Double.NaN / NEGATIVE_INFINITY / POSITIVE_INFINITY - Numeric values must be finite, but was #165

Closed freddyboucher closed 4 years ago

freddyboucher commented 4 years ago

Hi, Our app has recently started to return Double.NaN field but gwt-jackson throws IllegalArgumentException Numeric values must be finite, but was NaN. I don't see any reason why these specifics values are not supported, regular Jackson serializes those with a double quoted: "NaN", "-Infinity" and "Infinity". Patch is coming.