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

Allow to pass indent_length to json_pp #46

Closed
bbkr opened this issue Feb 21, 2019 · 2 comments
Closed

Allow to pass indent_length to json_pp #46

bbkr opened this issue Feb 21, 2019 · 2 comments

Comments

@bbkr
Copy link

bbkr commented Feb 21, 2019

Default 3 spaces indentation is pretty unusual.
Commonly used indentation in modern editors is 4 spaces, and they become confused when opening file formatted by json_pp.

Please allow to modify this value in --json_opt, for example:

cat foo.json | json_pp --json_opt utf8,indent_length=4

Thanks!

@charsbar
Copy link
Collaborator

Thanks for the request. Implemented.

@bbkr
Copy link
Author

bbkr commented Feb 22, 2019

Awesome, thanks!

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