Closed
Description
Description
The next example below is not supported... It throws :
Could not parse property path "[][key]". Unexpected token "[" at position 0.
Example
$array = [
['key' => 1],
['key' => 2],
];
$propertyAccessor->getValue($array, '[][key]'); // should return [1, 2]
It would be similar to the next jq
run :
$ echo '[{"key": 1},{"key": 2}]' | jq ".[].key" 0|5 err
1
2