<p>i want to access dotted named value with helm to use in ConfigMap
the value is something like that</p>
<pre><code>valuenum:
  joji.json: zok
</code></pre>
<p>i want to use it in ConfigMap with helm as this</p>
<pre><code>{{ toYaml .Values.valuenum.joji.json }}
</code></pre>
<p>it returns syntax error.
could not find a fix for it.</p>

MrZorkiPongi
<p>I found the answer myself, when using index we can search for nested variables with quotes.</p>
<pre><code>{{ index .Values.valuenum &quot;joji.json&quot; }}
</code></pre>
<p><a href="https://helm.sh/docs/chart_template_guide/variables/" rel="nofollow noreferrer">link for helm doc about index and more</a></p>
