That’s what the
Does. It is useful in early development stages.
That’s what the
Does. It is useful in early development stages.
By the way, ProtoStructs
are incompatible with StructTypes
:
using JSON3
using StructTypes
using ProtoStructs
json_string = """{"a": 1, "b": "hello, world"}"""
@proto struct MyType1
a::Int
b::String
end
StructTypes.StructType(::Type{MyType1}) = StructTypes.Struct() # error
hello_world = JSON3.read(json_string, MyType1)
println(hello_world)
JSON3.write(hello_world)