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

Add support to unquoted output #8

Closed
xonixx opened this issue Jul 10, 2020 · 0 comments
Closed

Add support to unquoted output #8

xonixx opened this issue Jul 10, 2020 · 0 comments
Assignees
Milestone

Comments

@xonixx
Copy link
Contributor

xonixx commented Jul 10, 2020

$ echo '[{"name":"Bob"}, {"name": "Alice"}]' | jsqry 'name' -u
Bob
Alice
$ echo '[{"name":"Bob"}, {"name": "Alice"}]' | jsqry 'name' -1 -u
Bob

What to do with non-unquote-able objects? Let's just return compacted

$ echo '[{"name":"Bob"}, {"name": "Alice"}, {"name": {"value":"John"}}]' | jsqry 'name' -u
Bob
Alice
{"value":"John"}
@xonixx xonixx added this to the 0.1.0 milestone Jul 10, 2020
@xonixx xonixx self-assigned this Jul 10, 2020
xonixx added a commit that referenced this issue Jul 16, 2020
xonixx added a commit that referenced this issue Jul 16, 2020
xonixx added a commit that referenced this issue Jul 16, 2020
xonixx added a commit that referenced this issue Jul 16, 2020
@xonixx xonixx closed this as completed Jul 16, 2020
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