Something like this, without items and capacity in the json output? I think Zig should be able to serialize first party types by default?
const Foo = struct {
Bar: []const u8,
Baz: ArrayList(usize),
};
Something like this, without items and capacity in the json output? I think Zig should be able to serialize first party types by default?
const Foo = struct {
Bar: []const u8,
Baz: ArrayList(usize),
};
You haven’ mentioned what serialization format you’re talking about. There are a couple in the Zig std library, and there are packages for others.
Sorry I didn’t clearly… I’m talking about json from the standard library std.json.