Set content type of response to JSON