How to discard json.exception.out_of_range.406 and parse the JSON anyway? #4856
josephernest
started this conversation in
General
Replies: 1 comment 1 reply
-
You cannot. This library stores numbers given in scientific notation as |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I receive this from several API endpoints:
This gives
(See https://json.nlohmann.me/home/exceptions/#jsonexceptionout_of_range406)
How to parse it anyway and ignore the error? If needed, how can we change it to
NaN
orInf
?Is it possible without manually modifying the string?
Beta Was this translation helpful? Give feedback.
All reactions