def is_good_response_json(resp):
    '\n    Returns True if the response seems to be HTML, False otherwise.\n    '
    content_type = resp.headers['Content-Type'].lower()
    return ((resp.status_code == 200) and (content_type is not None) and (content_type.find('json') > (- 1)))
Returns True if the response seems to be HTML, False otherwise.
def is_good_response_json(resp):
    '\n    \n    '
    content_type = resp.headers['Content-Type'].lower()
    return ((resp.status_code == 200) and (content_type is not None) and (content_type.find('json') > (- 1)))