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

wildcard support? #1

Closed
evakhoni opened this issue Apr 26, 2022 · 2 comments
Closed

wildcard support? #1

evakhoni opened this issue Apr 26, 2022 · 2 comments

Comments

@evakhoni
Copy link

Hey @WTFox! nice tool! wildcard support however will make it even better :)
something like:

jsonfind "version*" <(my_command_with_json_output)                                                            
version31:  .items[1].ver
version22:  .items[2].ver

maybe even regex...

also pipe support will be nice..

@WTFox
Copy link
Owner

WTFox commented Apr 26, 2022

@evakhoni Those are great suggestions! Your ideas, plus the new features in 1.18, gives me a reason to dig into this project again. I don't have a timeline for you, but I'll start working on it soon and post updates in this issue.

@WTFox
Copy link
Owner

WTFox commented Apr 28, 2022

@evakhoni Just released version 1.1.0. You can use the -r option to enable regex pattern matching. Piping via stdin is now supported, as well!

echo '[{"eyeColor": "brown"}]' | jf -r 'br*'
.[0].eyeColor

You can update by downloading the release manually or running brew install jsonfind. Hope this helps!

@WTFox WTFox closed this as completed Apr 28, 2022
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

2 participants