swa*_*l.s 4 json jmeter jsonpath
{
"response_time": 0.014376163482666016,
"applications": [
{
"api_key": "blted0e7982e1cf62a8",
"name": "gta",
"uid": "gta",
"account_name": "jack"
},
{
"api_key": "blt1423c40d23e4a423",
"name": "cellapp",
"uid": "cellapp",
"account_name": "max"
}
]
}
Run Code Online (Sandbox Code Playgroud)
请帮我提取account_name = max使用Jmeter Json Path Extractor.
$.applications.name[2] 必须完全返回第二个名称元素.
如果你使用JSONPath像$..name这样将寻找名为所有元素name和插件将返回一个字符串值,它看起来像["gta","cellapp"].如有必要,您可以解析此字符串.
检查此站点有关如何构建JSONPath表达式的信息:http://goessner.net/articles/JsonPath/index.html#e2 .