Interactive JsonPath tutorial

Deep scan: ..

When you need to scan in each element of array or object use ...

For example if you have multiple car options you can query each option with .car.options[*].price or .car.options..price

Now can you print each pet's name for the JSON below.

Input:
1{
2  "firstName": "Charles",
3  "lastName": "Doe",
4  "pets": [
5    {
6      "name": "Bear",
7      "kind": "dog"
8    },
9    {
10      "name": "Jerry",
11      "kind": "cat"
12    }
13  ]
14}
JsonPath expression:
Expected:
1[
2  "Bear",
3  "Jerry"
4]