Suppose I have this JSON response:
[
{
"id": "15",
"userId": "1",
"new": "true",
"date": "08/12/2013",
"text": "…"
},
{
"id": "16",
"userId": "1",
"new": "false",
"date": "08/12/2013",
"text": "…"
}
]
The regular expresión extractor for the id of every object would have the following configuration:
Reference name: object
Regular Expression: "id":"(.+?)"
Template: $1$
Match No: -1
Default value: null
What I need is to extract both id and new from each object, to use them together in a ForEach controller. I need some help with the regular expression for this case.
Reference name: object
Regular Expression: ¿? "id":"(.+?)" ¿? "new":"(.+?)" ¿?
Template: $1$$2$
Match No: -1
Default value: null
Also, how do I reference each specific part of the object varible? ${object_1} and ${object_2}?
Edit: sorry, I forgot to mention I´m specificaly using Jmeter.