Ion serialization for custom outputt range.
import mir.format: stringBuf; auto buffer = stringBuf; static struct S { int a; } serializeText(buffer, S(4)); assert(buffer.data == `{a:4}`);
See Implementation
Ion serialization for custom outputt range.