Quantcast
Channel: Grafana k6 - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 362

Extract value from a nested JSON response based on another value

$
0
0

Hello,

I am trying to extract a value from a nested JSON response based on another value from the response:

{
“primaryId”: “1”,
“details”: {
“secondaryId”: “3”,
}

In the above instance, I would JSONPath the primaryId value and, based on the primaryId value, extract the secondaryId value, however, k6 does not support JSONPath. What would be the right approach to accomplishing that in k6?

Cheers,
Gavin

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 362

Trending Articles