<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cheat sheets on ke.vinpet.it</title>
    <link>/cheatsheets/</link>
    <description>Recent content in Cheat sheets on ke.vinpet.it</description>
    <generator>Hugo</generator>
    <language>en-uk</language>
    <lastBuildDate>Fri, 07 Feb 2025 12:00:44 +0100</lastBuildDate>
    <atom:link href="/cheatsheets/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>JSONpath</title>
      <link>/cheatsheets/jsonpath/</link>
      <pubDate>Fri, 07 Feb 2025 12:00:44 +0100</pubDate>
      <guid>/cheatsheets/jsonpath/</guid>
      <description>&lt;p&gt;JSONpath is an expression language used to filter JSON Data. It is also used within Kubernetes (kubectl) to filter the&#xA;output when using the &amp;ldquo;-o=jsonpath&amp;rdquo; option.&lt;/p&gt;&#xA;&lt;p&gt;To get some real practice, I highly suggest following the free course by &lt;a href=&#34;https://kodekloud.com/courses/json-path-quiz&#34;&gt;KodeKloud&lt;/a&gt;.&#xA;Most of the information listed here is lifted from the course.&lt;/p&gt;&#xA;&lt;h2 id=&#34;json-primer&#34;&gt;JSON primer&lt;/h2&gt;&#xA;&lt;p&gt;This is a quick primer on some JSON terms.&lt;/p&gt;&#xA;&lt;h3 id=&#34;dictionary&#34;&gt;Dictionary&lt;/h3&gt;&#xA;&lt;p&gt;&lt;div class=&#34;breakout-wide&#34; style=&#34;padding: 0;&#34;&gt;&#xD;&#xA;    &lt;div class=&#34;breakout-code&#34;&gt;&#xD;&#xA;        &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;{&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#8839ef&#34;&gt;&amp;#34;danse_macabre&amp;#34;&lt;/span&gt;: {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#8839ef&#34;&gt;&amp;#34;manufacturer&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#40a02b&#34;&gt;&amp;#34;Intamin&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#8839ef&#34;&gt;&amp;#34;type&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#40a02b&#34;&gt;&amp;#34;Dynamic Motion Stage&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xD;&#xA;    &lt;/div&gt;&#xD;&#xA;&lt;/div&gt;&#xA;To get for example the &lt;code&gt;type&lt;/code&gt; of &lt;code&gt;danse_macabre&lt;/code&gt; here, you would use the jsonpath &lt;code&gt;$.danse_macabre.type&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
