Workflow challenges with redefining structs (from "Why I still recommend Julia")

That’s what the

Does. It is useful in early development stages.

6 Likes

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)