import json
先导入需要的库

data :  {"identity":" ","cust_name":" ","listtype":" ","start_date":"2019-12-12","end_date":"2019-12-29"}
# 将json字符串转换成dic字典对象
dict_json = json.loads(data)
         for key in  dict_json :
            print ('======key========:'+key+"************value******"+dict_json[key])

python jsonpath 获取key python获取json的key和value_json字符串