Jmeter JSon Extract multiple values Jmeter JSon Extract multiple values json json

Jmeter JSon Extract multiple values


You need to provide the same amount of Default Values as for JSON Path Expresions and Variable Names.

  1. Add JSON Extractor as a child of the request which returns the above JSON
  2. Configure it as follows:

    • Variable names: VoidTransactionReferenceNumber;CILAmount
    • JSON Path Expressions: $.VoidTransactionReferenceNumber;$.CILAmount
    • Default values: NOT_FOUND; NOT_FOUND

      JMeter JSON Extractor

  3. As a result you will have the following JMeter Variables defined

    JMeter JSON Extractor Variables

  4. You will be able to refer them as ${VoidTransactionReferenceNumber} and ${CILAmount} where required.

More information: API Testing With JMeter and the JSON Extractor