I've got this json:
[
{
"data": "interesting data",
"definition":{
"id":2216
}
},
{
"data": "irrelevant data",
"definition":{
"id":2217
}
}
]
I'm trying to get the full object, including the "interesting data" of the item with definition id 2216. In other words, I want something that looks like this result:
{
"data": "interesting data",
"definition":{
"id":2216
}
}
What query do i need?
I've spent an hour to figure it out using the documentation, google and other stack overflow posts, but I haven't found a solution yet.
The answer is:
That results to:
Turns out you need the backtick (
`) character around integers.