Repository navigation
v3: how to assign to a path with new parent #538
Unanswered
tomdavidson
asked this question in
Q&A
Replies: 1 comment
|
One approach is to construct a new object: $ echo '{
"foo": {
"bar": "baz"
}
}' | dasel -i json '{$root..., bong: "bing"}'
{
"foo": {
"bar": "baz"
},
"bong": "bing"
} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
v3.4.1. Assignment fails when any segment of the target path is missing. Is there an idiom I'm missing?
All reactions