X

[ Note ] Pretty JSON in VIM

As using VIM to review JSON data, the format and syntax might not be human readable.

Using the following instruction in VIM to make the JSON data pretty!

:set syntax=json | %!python -m json.tool

And it works!

Before:

After:

Rich:
Related Post