Type agnostic serialisation and deserialisation

I have searched for a way to serialise and deserialise julia structs that is not JLD2.jl based, and where users don’t have to know the original struct to pass it as an argument to StructUtils.jl. I haven’t found a package that does this so I made a tiny one. Its only dependencies are JSON.jl and StructUtils.jl. It works by registering the types you’d like to serialise/deserialise (for example walking through the types defined by a package) and calling to_json or from_json to serialise and deserialise instances of your structs.

Before registering it i’d like to know if there is already something that does this so i don’t pollute the general registry with a package that does the same thing as another one.

I can see why this doesn’t exist. I’m coming up against countless edge cases, I’ll keep it in the backburner and get claude to hunt down bugs. I’ll make an announcement if it turns into a workable thing.

Be careful not to run into the myriad of problems usually associated with serialization that doesn’t specify the target type :slight_smile: Insecure Deserialization | OWASP Foundation

It’s gated by a user-provided allow list argument for specific modules.