How to Format JSON in Vim Tyler (261)0Updated: January 17th, 2020ShareFacebookRedditTwitterPinterestEmailText messageFavoriteComment Vim is amazing. Well, Python is doing all the work, but I still like Vim. Learn how to format JSON in Vim like a pro with this short guide! tl;dr Paste your json, and run this in vim normal mode. :%!python -m json.toolInterestsPosted in these interests:vimPRIMARY15 subscribersSubscribepython91 subscribersSubscribe1Paste your ugly JSON in Vim Enter visual mode using 'v' and paste the ugly JSON.2Use Python to format the JSON In normal mode type: :%!python -m json.tool Beautiful.