Serde is a Julia library for (de)serializing data to/from various formats. The library offers a simple and concise API for defining custom (de)serialization behavior for user-defined types
Currently, nested data cannot be deserialized correctly:
julia> struct NestedData
id::Int
name::String
end
julia> struct Data
id::Int
nest::NestedData
end
julia> data = [Data(1,NestedData(2,"a"))]
1-element Vector{Data}:
Data(1, NestedData(2, "a"))
julia> Serde.to_csv(data)
"id,nest_id,nest_name\n1,2,a\n"
julia> csv = Serde.deser_csv(Data,csv)
ERROR: ParamError: parameter 'nest::NestedData' was not passed or has the value 'null'
Of course, this issue should be put on hold until we properly constrain Union types during serialization.
Currently, nested data cannot be deserialized correctly:
Of course, this issue should be put on hold until we properly constrain Union types during serialization.