Skip to content
New issue

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

How to reverse --items back to object form? (filter sub-objects) #133

Open
CodeMan99 opened this issue Dec 29, 2018 · 0 comments
Open

How to reverse --items back to object form? (filter sub-objects) #133

CodeMan99 opened this issue Dec 29, 2018 · 0 comments

Comments

@CodeMan99
Copy link

Am I missing something or is there no way to reverse --items? Say something like

$ cat object.json | json --items -c 'this.value.battles > 2' | json --to-object

Where the output would have the same object shape as the input, just filtered out some of the key-value pairs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant