struct Foo {
string name;
string age;
}
Foo f = json.get!Foo(myjson);
also works the other way around
auto f = Foo("myname", 12);
json2.put("myfoo", f);
Maybe even introduce a UDA for optional fields:
struct Foo {
string name;
@optional string age;
}