Returning a JSON response.