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? 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
JSON3.read(str, MyStruct)
using StructTypes, JSON3 struct A a::Dict{Tuple{Int,Int}, Char} end StructTypes.StructType(::Type{A}) = StructTypes.Struct() a = A(Dict((1, 2) => 'a', (2, 4) => 'b', (15, 20) => 'c')) @show JSON3.read(JSON3.write(a), A)
results in
A(Dict((40, 50) => 'b', (40, 49) => 'c'))
IMO this should error instead.
From: https://discourse.julialang.org/t/json3-read-dict-tuple-int-int-t-unexpected-behavior/117759
The text was updated successfully, but these errors were encountered:
No branches or pull requests
results in
IMO this should error instead.
From: https://discourse.julialang.org/t/json3-read-dict-tuple-int-int-t-unexpected-behavior/117759
The text was updated successfully, but these errors were encountered: