-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Would it be possible to have the following feature:
require 'vendor/autoload.php';
$expression = 'foo.*.baz';
$data = [
'foo' => [
'bar' => ['baz' => 1],
'bam' => ['baz' => 2],
'boo' => ['baz' => 3]
]
];
$override = "hello world";
JmesPath\override($expression, $override, &$data);
$data would be modified to:
$data = [
'foo' => [
'bar' => ['baz' => "hello world"],
'bam' => ['baz' => "hello world"],
'boo' => ['baz' => "hello world"]
]
];
It would be a great feature!
Excellent project, this is just a suggestion!
Cheers!
Metadata
Metadata
Assignees
Labels
No labels