JSON stringify returning invalid token inf
#23253
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
standard library
This issue involves writing Zig code for the standard library.
Zig Version
0.14.0
Steps to Reproduce and Observed Behavior
Min. repro:
The output:
{"a":inf}
inf
is not a valid token in JSON. In my opinion, a parsing error should be thrown in cases with infinite values.Expected Behavior
An error should be returned, instead of malformed json.
The text was updated successfully, but these errors were encountered: