[{id:1, name:"test1"},
{id:2, name:"test2"},
{id:3, name:"test3"},...]
- get id based on the name
- get id's based on the list of names
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.
Sign up to join this communityYou can use JSON JMESPath Extractor which allows executing JMESPath queries for getting the values from JSON data, if you want to filter results - you can go for Filter Expressions, example query:
[? name=='test1'].id
Demo:
More information: The JMeter JSON JMESPath Extractor and Assertion: A Guide