We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toJSON
digits=NA
The 1.8.5 update appears to have introduced some floating-point-ness issue when converting to JSON with max precision:
> packageVersion("jsonlite") [1] ‘1.8.4’ > jsonlite::toJSON(list(a=c(0.1, 0.2, 0.3)), digits=NA) {"a":[0.1,0.2,0.3]}
> packageVersion("jsonlite") [1] ‘1.8.5’ > jsonlite::toJSON(list(a=c(0.1, 0.2, 0.3)), digits=NA) {"a":[0.10000000000000001,0.20000000000000001,0.29999999999999999]}
The text was updated successfully, but these errors were encountered:
120cca8
Fyi this was fixed in jsonlite 1.8.5
Sorry, something went wrong.
A minor typo 😉:
According to 120cca8, this regression was fixed in 1.8.7.
Version 1.8.5 introduced the regression
No branches or pull requests
The 1.8.5 update appears to have introduced some floating-point-ness issue when converting to JSON with max precision:
The text was updated successfully, but these errors were encountered: