jsony icon indicating copy to clipboard operation
jsony copied to clipboard

Float `nan` values are generated in JSON

Open PMunch opened this issue 11 months ago • 5 comments

Had an issue recently where NaN values from Nim got written to JSON as nan. According to the official JSON spec nan is not a valid value in JSON. Not quite sure what the actual behaviour here should be. I see that jq parses such JSON fine, but Nims parseJson fails.

PMunch avatar Dec 06 '24 09:12 PMunch