Is there any processing logic related to NaN?
Opened this issue · 1 comments
zhaosonggo commented
Is there any processing logic related to NaN?
stig commented
Yes. The writer detects NaNs and errors here:
SBJson/Classes/SBJson5StreamWriter.m
Lines 471 to 474 in e36f225
For the parser there really is no special handling: there's no way to represent NaN in the JSON grammar, and this parser implements the grammar accurately. Loss of floating-point precision for big numbers is the only issue I am aware of.