title: How to escape "@" when reading from a JSON response?
body: <p>Let's say I have below sample JSON response from which I want to extract value for &quot;@type&quot;:</p>
  <pre><code>{
    &quot;firstName&quot;: &quot;John&quot;,
    &quot;lastName&quot; : &quot;doe&quot;,
    &quot;age&quot;      : 26,
    &quot;phoneNumbers&quot;: [
      {
        &quot;@type&quot;  : &quot;iPhone&quot;,
        &quot;number&quot;: &quot;0123-4567-8888&quot;
      },
      {
        &quot;@type&quot;  : &quot;home&quot;,
        &quot;number&quot;: &quot;0123-4567-8910&quot;
      }
    ]
  }
  </code></pre>
  <p>Validated using:- <a href="http://jsonpath.com/" rel="nofollow noreferrer">http://jsonpath.com/</a></p>
  <p>This works for &quot;number&quot;:</p>
  <pre><code>$.phoneNumbers.[number]
  </code></pre>
  <p>But cannot get value for &quot;@type&quot;:</p>
  <pre><code>$.phoneNumbers.[@type]
  </code></pre>
  <p>Tried multiple ways but no luck.</p>
  <p>Thanks!</p>
  <p>Edits:- added another value in the array for &quot;home&quot;, now indexing logic [0,1] doesn't work. Even tried with [:] to fetch all values, but no luck.</p>