returning the response with the content-type json