Skip to content

Commit

Permalink
add a merge operation example into readme
Browse files Browse the repository at this point in the history
  • Loading branch information
can3p committed Apr 14, 2024
1 parent 62dd9d8 commit 106d672
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,22 @@ prop:
test: 123
```

### Merge path with an object

This may come in handy in case you want to apply some specific values to a json template

```
echo '{ "a" : { "test prop": { "abc": true } } }' | sackmesser mod 'merge(a."test prop", { "testme": true })'
{
"a": {
"test prop": {
"abc": true,
"testme": true
}
}
}
```

### Delete a field

```
Expand Down

0 comments on commit 106d672

Please sign in to comment.