0

Having the following JSON response, how can I get a list of items foo and bar or values of zoneGroup under each element using GPath or RestAssured built-in JsonPath?

{
  "priceZones": {
      "foo": [
          {
              "zoneGroup": "foo",
              "code": "id1"
          }
      ],
      "bar": [
          {
              "zoneGroup": "bar",
              "code": "id2"
          }
      ]
  }
}

I tried priceZones.*.[*].zoneGroup JsonPath Evaluator, but get an error that RestAssured doesn't accepts * as a wildcard.

Vitali Plagov
  • 722
  • 1
  • 12
  • 31

0 Answers0