JMeter PreProcessor - JSON EXtractor: Nested object

223 views Asked by At

In the response body of my request, it receives the following JSON:

`{"C6666111B946":{"status":"NOT-ADDED"}}`

I need to get to the item "C6666111B946" to save it as a variable, so the question is what do I have to enter in the JSON Path expressions field to access it?

enter image description here

I've already tried with $..* but then I only receive {"status": "NOT-ADDED"}

Can somebody help me to solve this

1

There are 1 answers

1
UBIK LOAD PACK On BEST ANSWER

You can use JMES Path Extractor with below JMESPath expression:

keys(@)

This ends up with this configuration:

JMESPath Configuration