def get_json_response(request):
    """Retrieve the response object with content_type of json."""
    response = request.response
    response.headers.extend({'Content-Type': 'application/json'})
    return response