MKNSoft Blog

Technical information from around the technology world.

Pages

  • Home
  • Weather
  • Softwares
  • About

Tuesday, February 12, 2013

Format JSON string in VIM

I need to format a JSON string in a better human readable way. How do I do it? It's easy, use the following Vim command:

:%!python -m json.tool

That all :).


Posted by Mahesh at 1:03 PM
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: IDE, Linux, VIM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2015 (2)
    • ►  January (2)
  • ►  2014 (3)
    • ►  December (2)
    • ►  October (1)
  • ▼  2013 (10)
    • ►  September (1)
    • ►  July (1)
    • ▼  February (7)
      • Linux terminal prompt (PS1)
      • “Vi” Editor
      • Vim 7: Turning auto completion on
      • VIM Quick Command Tutorial #2
      • VIM Quick Command Tutorial #1
      • Format JSON string in VIM
      • Disable Ubuntu One, MySql, Apache services on boot...
    • ►  January (1)
  • ►  2012 (6)
    • ►  November (2)
    • ►  October (1)
    • ►  May (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2011 (5)
    • ►  December (1)
    • ►  November (1)
    • ►  October (2)
    • ►  January (1)
  • ►  2010 (8)
    • ►  December (1)
    • ►  October (5)
    • ►  August (2)
Watermark theme. Powered by Blogger.