Serialize value to binary ion data and deserialize it back to requested type. Uses GC allocated string tables.
import mir.ion.stream: IonValueStream; import mir.algebraic_alias.json: JsonAlgebraic; static struct S { double a; string s; } auto s = S(12.34, "str"); assert(s.serde!JsonAlgebraic.serde!S == s); assert(s.serde!IonValueStream.serde!S == s);
See Implementation
Serialize value to binary ion data and deserialize it back to requested type. Uses GC allocated string tables.