Json input = parseJsonString("{\"key\" : \"value\"}");
Appender!string output;
toPrettyJson(output, input);
writefln("%s", output.data);

toPrettyJson actually does not look like a convenience function. More like a primitive for efficient Json-to-string serialization that can be probably used for "prettier" one. Funny to mention that documentation references some "toPrettyJSON" that is supposed to do additional indentation, but it is nowhere to be found.