ASDF serialization function
import asdf; import mir.conv: to; struct S { string foo; uint bar; } assert(serializeToAsdf(S("str", 4)).to!string == `{"foo":"str","bar":4}`);
See Implementation
ASDF serialization function