Bastian
Bastian

Reputation: 1237

Extract partial value using JMeter JSON Extractor

I parse json to variable using jmeter, and I can only parse to a certain point, in this JSON I would like to parse the value of tt_cid, that is located under nurl parameter in JSON , How to parse this value? (I managed to parse the entire nurl but not inside it).

  1. How to move more than one variable in the same JSON extractor?

I put the JSON PIC and the extractor that I used to parse nurl, I would like to parse tt_cid that is inside nurl field.

enter image description here

enter image description here

Upvotes: 1

Views: 497

Answers (1)

Ori Marko
Ori Marko

Reputation: 58892

you need to add a Regular Expression Extractor after your JSON Extractor that will use the variable created by the JSON Extractor.

You need to select JMeter Variable radio button with nurl value after JSON Extractor:

Regex will be:

&tt_cid(\W+)

Upvotes: 1

Related Questions