<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Jsonpath on Kevin Morris</title><link>https://kevin-morris.net/tags/jsonpath/</link><description>Recent content in Jsonpath on Kevin Morris</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 15 Jun 2026 16:02:07 -0400</lastBuildDate><atom:link href="https://kevin-morris.net/tags/jsonpath/index.xml" rel="self" type="application/rss+xml"/><item><title>jsonpath Reference</title><link>https://kevin-morris.net/blog/2026/jsonpath-reference/</link><pubDate>Mon, 15 Jun 2026 16:02:07 -0400</pubDate><guid>https://kevin-morris.net/blog/2026/jsonpath-reference/</guid><description>&lt;h1 id="jsonpath--the-mental-model"&gt;
 jsonpath — the mental model
 &lt;a class="heading-link" href="#jsonpath--the-mental-model"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;The dot notation is just the YAML structure of the resource, flattened.&lt;/p&gt;
&lt;p&gt;Whatever you see in &lt;code&gt;k get &amp;lt;resource&amp;gt; -o yaml&lt;/code&gt; — that&amp;rsquo;s the map. Every key is a dot. Every list item is &lt;code&gt;[0]&lt;/code&gt; or &lt;code&gt;[*]&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="the-thinking-method"&gt;
 The thinking method
 &lt;a class="heading-link" href="#the-thinking-method"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Step 1 — run this:&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;k get &amp;lt;resource&amp;gt; &amp;lt;name&amp;gt; -o yaml
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Step 2 — read the YAML, trace the path to what you want&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>