<rss version="2.0">
  <channel>
    <title>Meet Gor - Tag: jq</title>
    <link>https://www.meetgor.com</link>
    <description>Posts tagged with jq</description>
    <language>en-us</language>
    <pubDate>Sat, 18 Apr 2026 05:00:11 UTC</pubDate>
    <item>
      <title>Format JSON in Vim with JQ</title>
      <link>https://www.meetgor.com/til/format-json-in-vim-with-jq</link>
      <description>We can use :%!jq . To instantly format a json file opened in vim/neovim. I relied on online foramtter and opening vscode for formatting. But this quick tool jus</description>
      <pubDate>Sat, 05 Apr 2025 00:00:00 UTC</pubDate>
      <content>&lt;p&gt;We can use&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;:%!jq .&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To instantly format a json file opened in vim/neovim.&#xA;I relied on online foramtter and opening vscode for formatting.&#xA;But this quick tool just saves a lot of hassle. Opening VS Co** == shutting down the laptop, it clogs the memory badly, so I avoid opening VS Co** as much as possible.&lt;/p&gt;&#xA;&lt;p&gt;Yes, to use this, you need to have &lt;a href=&#34;https://jqlang.org/&#34;&gt;jq&lt;/a&gt; installed on your system.&lt;/p&gt;&#xA;&lt;p&gt;If you are elsewhere and want to format json file using jq, you can quickly do this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;jq . input.json | sponge input.json&#xA;&#xA;# OR&#xA;&#xA;jq . input.json &amp;gt; tmp.json &amp;amp;&amp;amp; mv tmp.json input.json&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;If you are in Vim and want to format other file, just add &lt;code&gt;!&lt;/code&gt; at the start of the command and that will run in the shell for you, so you don&#39;t have to exit vim.&lt;/p&gt;&#xA;</content>
      <type>til</type>
    </item>
  </channel>
</rss>