users@jsonb-spec.java.net

[jsonb-spec users] How is Double.NaN marshalled?

From: Arend v. Reinersdorff <arend_at_arendvr.com>
Date: Thu, 10 Sep 2015 21:54:23 +0200

Hi,

issue JSONB_SPEC-9 mentions that NaN needs to be handled as a special case:
https://java.net/jira/browse/JSONB_SPEC-9

But I didn't find this case in the spec draft. I looked in section 3.3.2
"java.lang.Byte, Short, Integer, Long, Float, Double".

JSON doesn't allow NaN or Infinity as number values. So I think these cases
need special handling when marshalling a float or double?

Best regards,
Arend