Jmeter json 提取字符串
程序员文章站
2022-07-13 21:36:52
...
{ "data": [ { "text":"aaaaaaaa", "value" : "1" }, { "text":"bbbbbbbbbbbbbb", "value" : "2" }, { "text":"ccccc", "value" : "3" } ] }
我想要提取 cccc 所对应的值 3 :
$..data[?(@.text=='cccccc')].value
即可.
参考链接 :
http://goessner.net/articles/JsonPath/index.html#e2