# JsonMerge `Maestro\Core\Task\JsonMergeTask` Modify a JSON document ## Parameters - **filter** - `(Closure(stdClass ): stdClass | null)` ## Description Merge data into a JSON document or apply a filter. ```php new JsonMergeTask( path: 'composer.json', data: [ 'minimum-stability' => 'dev', ] ); ``` You can also filter the object: ```php new JsonMergeTask( path: 'composer.json', filter: function (stdClass $object) { unset($object->{'minimum-stability'}); return $object; } ); ```