我的程序被赋予了一个JSON类,我需要访问其中的某些项。我尝试过json.dumps()和json.load(),它们都返回错误。has no attribute '_dict_'," and "Object of type 'LambdaContext' is not JSON serializable."I don't know what
"Ensure that this field has atleast 5 and atmost 50 characters"} 我正在尝试获取password.How中的字符串下面是我正在尝试的代码 key = json.loads(response['password'])
print(key[0]), 但是它说“字符串索引必须是整数,而不是字符串”