title: Path to json object which contains an attribute or value
body: <p>I have the following json array...</p>
  <pre><code>[
  { &quot;class&quot;:&quot;Identity&quot;, &quot;id&quot;:5, &quot;type&quot;:6 },
  { &quot;class&quot;:&quot;Combat&quot;, &quot;damage&quot;:10.0 },
  .
  .
  .
  ]
  
  or
  
  [
  { &quot;class&quot;:&quot;Combat&quot;, &quot;damage&quot;:10.0 },,
  { &quot;class&quot;:&quot;Identity&quot;, &quot;id&quot;:5, &quot;type&quot;:6 }
  .
  .
  .
  ]
  </code></pre>
  <p>I dont know the exact path to it, because its not deterministic.
  <br>
  I tried this <code>select json_search('one', &quot;Identity&quot;) from...</code> but it only returns <code>$[0].class</code> which refers to the path of the attribute but not the path of the json object itself... which would be simply <code>$[0]</code>. This is the path i want to receive...</p>
  <br>
  With what other statements may i find the path of the json object inside the array based on either its attribute or value ?