JSON serialization function.
import asdf; struct S { string foo; uint bar; } assert(serializeToJson(S("str", 4)) == `{"foo":"str","bar":4}`);
See Implementation
JSON serialization function.