allow setting header Content-type to application/json for json output