Closed 0x005c closed 4 years ago
This probably has to do w/ the switch in Base Julia to using the Ryu algorithm for float writing/printing, though I don't quite know the details of what JSON is doing under the hood here. But on nightly, json(2.1f-8)
produces "2.1f-8"
, whereas Julia 1.2 has
julia> json(2.1f-8)
"2.1e-8"
fixed by JuliaLang/julia#33909
Tests on v0.21.0 and master branch fail on nightly build Julia.
How to reproduce: Replace
Pkg.add("JSON")
withPkg.add(Pkg.PackageSpec(url="https://github.com/JuliaIO/JSON.jl"))
to test master branchExpected result: All tests pass
Current result:
Julia version: julia version 1.4.0-DEV (commit 1a6549a8708bd4a3e6425daa3f8cf04df955f1e2)