PJSON: pretty, colorful json output formatting for terminal
21–30 of 36 posts
Re: PJSON: pretty, colorful json output formatting for terminal
#22Hey kids, why shouldn't every python tool have a Ruby counterpart? :) https://github.com/marksands/pjson-rb
Re: PJSON: pretty, colorful json output formatting for terminal
#23Hey kids, why shouldn't every python tool have a Ruby counterpart? :) https://github.com/marksands/pjson-rb
Re: PJSON: pretty, colorful json output formatting for terminal
#24Rather than pipe curl's output through stuff though, for the most part I use httpie [1]. It's a human-friendly curl wrapper.
Re: PJSON: pretty, colorful json output formatting for terminal
#25Hey kids, why shouldn't every python tool have a Ruby counterpart? :) https://github.com/marksands/pjson-rb
Come on, you should use coderay instead of pygments. 100% ruby ;)
Re: PJSON: pretty, colorful json output formatting for terminal
#26$ gem install jazor coderay
$ echo '{"foo": "bar"}' | jazor | coderay -json
Re: PJSON: pretty, colorful json output formatting for terminal
#27Wait wait ... what are the unicode characters for that cloud and lightning bolt? That looks awesome.
Re: PJSON: pretty, colorful json output formatting for terminal
#28python -m json.tool "$@" | pygmentize -l json | less -RSNFX
Re: PJSON: pretty, colorful json output formatting for terminal
#29Re: PJSON: pretty, colorful json output formatting for terminal
#30If this is based on pygments, is it reasonable to have a command like this that works on everything pygments knows how to highlight, and plugs into a bunch of pretty-printers / reformatters, e.g. GNU indent? Is there an equivalent of pygments for pretty-printing all the things?