the.bay.news

Parsequoted=true in JSON.jl

Julia Programming Language
Parsequoted=true in JSON.jl
JSON3 had the ability to automatically handle quoted numbers. For example import JSON3 struct MyType x::Float64 end s = "{\"x\":\"4.0\"}" # note quoted "4.0" JSON3.read("{\"x\":\"4.0\"}", MyType; parsequoted=true) # MyType(4.0) Is this possible to achieve with JSON.parse? I haven’t been able to find it in the migration guide[1]. [1] Migration Guides · JSON.jl

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.