import json
import jsonpath
json_txt = json.loads(doc)
键值 = jsonpath.jsonpath(json_txt, '$..键名')[0]
Python获取json或字典中任意key的value值_jsonpath获取key的值-优快云博客
jsonpath-python 1.0.6
jsonpath.JSONPath(f'$..{table}').parse(json_txt)[0]
import json
import jsonpath
json_txt = json.loads(doc)
键值 = jsonpath.jsonpath(json_txt, '$..键名')[0]
Python获取json或字典中任意key的value值_jsonpath获取key的值-优快云博客
jsonpath-python 1.0.6
jsonpath.JSONPath(f'$..{table}').parse(json_txt)[0]