Deserialize composite type from JSON

Continuing the discussion from Serializing composite type to json:

What is the closest that I can come to deserializing a composite type from JSON?

I would like to be able to do something akin to
deserialize(Foo, JSON.json(Foo("xyz",1.2)))

Not yet, but there is an issue here with a possible solution:
https://github.com/JuliaIO/JSON.jl/issues/39#issuecomment-194922317

1 Like

See the Unmarshal.jl package by @lwabeke.

https://github.com/lwabeke/Unmarshal.jl