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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
接收科学计数法格式的double类型转换出错,将版本变更为fastjson1就可以了
运行
public static void main(String[] args) { String json = "{\"V\": -2.0089457919266330204e-15}"; JSONObject jsonObject = JSON.parseObject(json); System.out.println(jsonObject); }
{"V":-2.0089457919266330204E-15}
The text was updated successfully, but these errors were encountered:
bug fix for parse double value, for issue #959
5e7a0d5
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.20-SNAPSHOT/ 问题已修复,请帮忙用2.0.20-SNAPSHOT版本帮忙验证
Sorry, something went wrong.
https://github.com/alibaba/fastjson2/releases/tag/2.0.20 问题已修复,请用新版本
No branches or pull requests
问题描述
接收科学计数法格式的double类型转换出错,将版本变更为fastjson1就可以了
环境信息
重现步骤
运行
期待的正确结果
{"V":-2.0089457919266330204E-15}
相关日志输出
The text was updated successfully, but these errors were encountered: