Hi, I just started to use vibe.d

I want to generate some JSON for ajax calls. And first thing I tried was .dt templates. They would be quite good match for it, but I don't know how to set content type to "application/json" for them.

Second approach I took was to try to direct write to response stream. But only method that allows setting content type is writeBody. So I'm forced to generate full JSON string before, and then write it.

I would prefer to use .dt and also being able to directly set content type (by property) and be able to write to OutputStream bodyWriter...

Thank you.