Convenience method to set content type to json and write the string as the complete response.
Added January 16, 2020
Convenience method to set content type to json and write the string as the complete response.