Sadiq K
Sadiq K

Reputation: 192

Jmeter JSON Extractor to get a token value inside a response

So Here is the response that I am getting, I am unable to extract "webToken", what should be JSON path expression... I have tried $..webToken and $.webToken. I am trying to use this in JMeter so I can pass the value

        }
</script>

Upvotes: 0

Views: 186

Answers (1)

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34566

You response is not JSON so your expression will not work.

You can use this regexp:

"webToken":"([^"]+?)"

Configuring Regular_Expression_Extractor this way.

enter image description here

Upvotes: 1

Related Questions