<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tools on Ephemeral Dance Of Electrons</title><link>https://tmzh.github.io/categories/tools/</link><description>Recent content in Tools on Ephemeral Dance Of Electrons</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 26 Mar 2021 12:00:00 +0000</lastBuildDate><atom:link href="https://tmzh.github.io/categories/tools/index.xml" rel="self" type="application/rss+xml"/><item><title>Previewing command line JSON output using firefox</title><link>https://tmzh.github.io/post/2021-03-26-previewing-command-line-json-output-using-firefox/</link><pubDate>Fri, 26 Mar 2021 12:00:00 +0000</pubDate><guid>https://tmzh.github.io/post/2021-03-26-previewing-command-line-json-output-using-firefox/</guid><description>&lt;p&gt;Firefox, like other modern browsers, has an excellent in-built JSON viewer. It also supports 
&lt;a href="https://en.wikipedia.org/wiki/Data_URI_scheme" target="_blank" rel="noopener"&gt;Data URIs&lt;/a&gt; which allows you to load HTML resource from text in URL as if they were external resources. We can make use of these two features to have a handy JSON previewer which can be invoked from command line.&lt;/p&gt;
&lt;p&gt;For example, when you enter the below link into your browser, it opens a &amp;ldquo;Hello world&amp;rdquo; text document.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;data:,Hello%2C%20World!
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This content is not limited to plain text. It can even be an HTML document:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;data:text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item></channel></rss>