Pulling multiple values from JSON response using 'Json Path Extractor ' in Jmeter -
{ "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" } ] } please me extract account_name = max using jmeter json path extractor.
$.applications.name[2] must return second name element.
if use jsonpath $..name elements named name , plugin return single string value ["gta","cellapp"]. can parse string if necessary.
check site on how build jsonpath expressions: http://goessner.net/articles/jsonpath/index.html#e2.
Comments
Post a Comment