请问jmeter怎么提取出json里的数据
如以下数据,我需要提取json里"ID\":6069,的数据,请问应该如何提取?{
"msg": "",
"code": 0,
"data": {
"docDetailList": "[{\"ID\":6069,\"Sort\":6074,\"tureSort\":993925,\"EmpId\":15506,\"UserId\":5379,\"Code\":\"F001\",\"UserType\":2,\"DocName\":\"傅XX\",\"SexName\":\"男\",\"DeptId\":4156,\"DocDeptName\":\"儿科\",\"DeptTips\":\"\",\"DocLevelId\":59940,\"DocLevel\":\"副主任医师(Associate Chief Physician)\",\"GurationPicture\":1,\"PicOldPrice\":0.0,\"VdoOldPrice\":0.0,\"VdoConsultOldPrice\":0.0,\"PicNewPrice\":0.0,\"VdoNewPrice\":0.0,\"VdoConsultNewPrice\":0.0,\"TreatmentFee\":0.0,\"Skilful\":\"嘟嘟的圣诞时刻\",\"pre\":\"https:\/\/api.efwplus.cn:9910\",\"IsOpenImageTextService\":1,\"ImgUrl\":\"https:\/\/api.efwplus.cn:9910\/uploadfiles\/20200618\/2020061815153152263463163725.jpg\",\"doctorIdPicUrl\":\"https:\/\/api.efwplus.cn:9910\/uploadfiles\/20200616\/20200616101506582426481795091.png \",\"titlePicUrl\":\"https:\/\/api.efwplus.cn:9910\/uploadfiles\/20200616\/20200616101509089291134867757.png \",\"Memo\":\"但事实上\",\"WorkName\":\"深圳新园素门诊部\",\"UnionId\":\"\",\"OnlineSatisfaction\":\"80\",\"CurativeSatisfaction\":\"\",\"AttitudeSatisfaction\":\"\",\"WorkId\":1,\"DelFlag\":0,\"Telephone\":\"15500000000\",\"SSOUserId\":\"4095\",\"Lock\":0,\"ImageTextServiceOnlineState\":0,\"TotalCount\":913,\"Wenzhen\":0,\"Zixun\":0}]"
}
} 新人初到,麻烦大佬们解答一下感激不尽 用正则表达式吧。正则表达式具体使用百个度。 JSON Extractor,表达式:$.body.docDetailList(0).ID,Match No 设置1 就是取第一个. 297322716 发表于 2020-6-20 17:22
JSON Extractor,表达式:$.body.docDetailList(0).ID,Match No 设置1 就是取第一个.
谢谢解答,但是也取不到值
applepen 发表于 2020-6-19 22:57
用正则表达式吧。正则表达式具体使用百个度。
好的,谢谢解答 json提取 $.. docDetailList.ID
页:
[1]