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

Non-zero exit code if lookup is undefined #120

Open
tilmanschweitzer opened this issue Sep 12, 2017 · 0 comments
Open

Non-zero exit code if lookup is undefined #120

tilmanschweitzer opened this issue Sep 12, 2017 · 0 comments

Comments

@tilmanschweitzer
Copy link

I would be really great, it a lookup returns a non-zero exit code if the element is undefined. Currently one can not distinguish between an empty string and a undefined node or value

Example:
echo '{"name":"john","emptyName":""}' | json emptyName
echo '{"name":"john","emptyName":""}' | json notExistingName

Besides that your tool seems to be really great. I have a use case where I just want to check if json properties exist.

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