We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Delete doesn't work for paths with null values.
To Reproduce Steps to reproduce the behavior:
> echo '{ "foo": null }' | dasel delete -r json 'foo' < Error: could not access map index: property not found: foo
Expected behavior I'd expect it to return {} instead I get the error above.
{}
The text was updated successfully, but these errors were encountered:
I've had a look and this is a tough problem to solve.
Related: golang/go#51649
I'm going to do some thinking and come back to this.
Sorry, something went wrong.
Thanks for your patience on this.
I believe I have resolved this issue, see:
$ echo '{"foo":null}' | ./dasel -r json { "foo": null } $ echo '{"foo":null}' | ./dasel -r json 'foo' null $ echo '{"foo":null}' | ./dasel delete -r json 'foo' {}
The fix is on master and I'll create a release shortly.
master
TomWright
Successfully merging a pull request may close this issue.
Describe the bug
Delete doesn't work for paths with null values.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'd expect it to return
{}
instead I get the error above.The text was updated successfully, but these errors were encountered: