prettify json input
If you need to pretty print input of one-line per json objects here is what I use.
Source
cat pretty-json
while read LINE
do
echo $LINE | python -mjson.tool
done
How to use:
avrotools.sh tojson part-00000_5.avro | pretty-json > part-00000_5.json
Written by oleksii iepishkin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#