if type(val) is dict: if 'T' in obj: if 'response' not in jsonData.keys(): if not token: if token['userid'] is None: