Skip to content
New issue

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

JSON.parse(JSON.json(Float32(1e-7))) fails #163

Closed
kshramt opened this issue Aug 16, 2016 · 1 comment
Closed

JSON.parse(JSON.json(Float32(1e-7))) fails #163

kshramt opened this issue Aug 16, 2016 · 1 comment

Comments

@kshramt
Copy link

kshramt commented Aug 16, 2016

Version:

julia> versioninfo()
Julia Version 0.6.0-dev.233
Commit 62615c3* (2016-08-16 05:34 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin15.4.0)
  CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)

Error message:

julia> using JSON ; JSON.parse(JSON.json(Float32(1e-7)))
ERROR: Expected end of input
Line: 0
Around: ...1.0f-7...
              ^

 in _error(::String, ::JSON.Parser.MemoryParserState) at /Users/kshramt/.julia/v0.6/JSON/src/Parser.jl:135
 in #parse#1(::Type{Dict{String,Any}}, ::Function, ::String) at /Users/kshramt/.julia/v0.6/JSON/src/Parser.jl:386
 in parse(::String) at /Users/kshramt/.julia/v0.6/JSON/src/Parser.jl:382
@kshramt
Copy link
Author

kshramt commented Aug 16, 2016

Sorry, this was a Julia issue (JuliaLang/julia#18053).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant