需要在Jmeter中从这个JSON提取数据
我必须在Jmeter中从这个JSON数组中提取所有“uniqueid”,然后将这些值存储在一个数组中,以便以后我可以将它与每个控制器一起用于附加到另一个URL的尾部 有谁能帮我在Jmeter里做这个吗 谢谢你的帮助。谢谢需要在Jmeter中从这个JSON提取数据,json,jmeter,Json,Jmeter,我必须在Jmeter中从这个JSON数组中提取所有“uniqueid”,然后将这些值存储在一个数组中,以便以后我可以将它与每个控制器一起用于附加到另一个URL的尾部 有谁能帮我在Jmeter里做这个吗 谢谢你的帮助。谢谢 {"groups":[ { "categoryid": 4003, "name": "Agarbatti", "properties": [ { "name": "Take Photo", "type": "image",
{"groups":[
{
"categoryid": 4003,
"name": "Agarbatti",
"properties": [
{
"name": "Take Photo",
"type": "image",
"displaytype": "image",
"mandatory": false,
"uniqueid": "1149"
}
]
},
{
"categoryid": 4005,
"name": "Cigarettes",
"properties": [
{
"name": "Take Photo",
"type": "image",
"displaytype": "image",
"mandatory": false,
"uniqueid": "1150"
}
]
},
{
"categoryid": "1001",
"name": "Remark",
"properties": [
{
"name": "Remark",
"type": "string",
"displaytype": "edit",
"uniqueid": "Remarks",
"mandatory": "true"
}
]
}
]
}
最好使用available via(您将需要附加Libs设置)
因此,在您的数据上,请遵循JSONPath表达式:
$..uniqueid
将返回下一个结构:
["1149","1150","Remarks"]
请参阅指南(向下滚动至“解析JSON”),了解更多详细信息和一种JSONPath食谱