Closed glyn closed 2 years ago
I would consider adding two additional examples:
given:
{
"j": 10,
"o": {"j": 11, "k": 2},
"a": [
{ "j": [3, 5] },
{ "j": [4, 6] }
]
}
$..[0]
results in:
{ "j": [3, 5] }
3
4
$..j
and $..['j']
results in:
10
11
[3, 5
][4, 6
]I would consider adding two additional examples:
given:
{ "j": 10, "o": {"j": 11, "k": 2}, "a": [ { "j": [3, 5] }, { "j": [4, 6] } ] }
$..[0]
results in:* `{ "j": [3, 5] }` * `3` * `4`
$..j
and$..['j']
results in:* `10` * `11` * `[3, 5`] * `[4, 6`]
I extended the existing example attempting to exhibit the same points as the example above.
I extended the existing example attempting to exhibit the same points as the example above.
Looks good, thanks!
Fixes: https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/issues/177