2
votes

I want to extract two elements from response for this purpose Im using JSON path extractor in Jmeter. Right now I am extracting these two elements by using TWO extractor for each element. Can i do the same by using only one extractor.I am attaching picture for reference Please let me know where I am wrong. As this is not working for me.enter image description here

1

1 Answers

0
votes

Use semicolon (;) to add one or more JSON Path expressions and Variable names and other applicable fields, in order to capture them in one JSON PATH Extractor.

From official docs:

Variable Names

Semi-colon separated names of variables that will contain the results of JSON-PATH expressions (must match number of JSON-PATH expressions)

JSON Path Expressions

Semi-colon separated JSON-PATH expressions (must match number of variables)

Similarly for Match Numbers and Default Values fields.

Image reference: enter image description here