JSON2.jl
JSON2.jl copied to clipboard
Parsing json_checker.json fails
https://github.com/samoconnor/LazyJSON.jl/blob/master/test/json_checker.json
julia> using JSON2
julia> x = JSON2.read(String(read("json_checker.json")))
ERROR: ArgumentError: JSON invalid escape character: '/'
Stacktrace:
[1] unescape(::String) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/strings.jl:140
[2] read(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Type{String}) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/strings.jl:182
[3] read(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Type{Any}) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/read.jl:71
[4] read(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Type{NamedTuple}) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/read.jl:120
[5] read(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Type{Any}) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/read.jl:59
[6] read(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Array{Any,1}) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/read.jl:184
[7] read(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Type{Array{Any,1}}) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/read.jl:176
[8] read(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Type{Any}) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/read.jl:63
[9] read(::String) at /Users/sam/.julia/packages/JSON2/Fw6eK/src/read.jl:50
[10] top-level scope at none:0
using JSON
julia> x = JSON.parse(String(read("json_checker.json")))
20-element Array{Any,1}
...