def assertJsonSuccess(data):
    obj = json.loads(data)
    if 'status' in obj and obj['status'] == "error":
        #print "Error: JSON object returns an error. " + str(obj)
        return False
    else:
        return True
dataset/ETHPy150Open Esri/ops-server-config/Install/ArcGISServer/SupportFiles/PreConfigurationChecks.py/assertJsonSuccess/original