I\'ve a file with a sequence of JSON element:
{ element0: \"lorem\", value0: \"ipsum\" } { element1: \"lorem\", value0: \"ipsum\" } ... { elementN: \"lorem\"
Pygmentize is a killer tool. See this. I combine python json.tool with pygmentize
echo '{"foo": "bar"}' | python -m json.tool | pygmentize -g
For other similar tools and installation instruction see the answer linked above.
Here is a live demo: