I would like to get something like:
{"collection":"tags","example":{"name":"dima"}}
I am doing:
Json x = Json.emptyObject;
x.collection = "tags";
x.example = `{"name":"dima"}`;
writeln(x.toString);
I am getting:
{"collection":"tags","example":"{\"name\":\"dima\"}"}
What I am doing wrong? How to prevent slashes appearing?