-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
I got this ticket: rurban/Cpanel-JSON-XS#28
"inf and nan encoded as invalid JSON"
I know that inf and nan are not encodable in JSON, but inf or nan are invalid JavaScript.
perl -MJSON -e'print encode_json([9**9**9])'
=> [inf]
Other JSON libraries encode it as null, and Mojo::JSON stepped forward by stringifying it.
I have no opinion, but either one of those solution would be better than the invalid inf or nan,
we currently have.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels