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

request to not add newline at the end of any non-object value #130

Open
balupton opened this issue Apr 24, 2018 · 0 comments
Open

request to not add newline at the end of any non-object value #130

balupton opened this issue Apr 24, 2018 · 0 comments

Comments

@balupton
Copy link

I'm using json to fetch string values from json strings for use in APIs. Currently, that requires a manual pipe to tr -d '\n'

echo '{"foo": "bar"}' | json foo
bar

echo '{"foo": "bar"}' | json foo  | tr -d '\n' 
bar⏎      

It would be nice if this extra step was unnecessary.

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