setting the content type response for JSON response writer