We are attempting to use JsonParser.parse on JSON that contains values that are simply NaN. As a result, we get back -\/("Unexpected content found: NaN")
Is this the correct expected result?
After locally trying adding a NaN value to the KnownResults and running the JsonParserSpecification tests confirms that this is the case. We have localized that this result is related to the behavior at line 130 in JsonParser.scala. Assuming, we could pass that check, however, the logic after would yield that the NaN value would be parsed as null.
If this is actually the expected result, I am slightly confused as there appears to be handling in Json.scala for NaN, +Infinity and -Infinity (i.e. jNumberOrNull, jNumberOrString, etc.)
Thanks for any thoughts!
Jack