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