Format JSON in vim using Python’s json.tool module
Posted in Life on Dec 20th, 2010 3 Comments »
Based on this blogpost, use this Vim command to format the contents of a JSON file:
:%!python -m json.tool
That is all.
Posted in Life on Dec 20th, 2010 3 Comments »
Based on this blogpost, use this Vim command to format the contents of a JSON file:
:%!python -m json.tool
That is all.