Document looks like this.
{
'tid': 1,
'matches': [{
'dord': 1,
'matches': [{
'tord': 1,
'score': 11
},
{
'tord': 2,
'score': 12
}
]
},
{
'dord': 2,
'matches': [{
'tord': 1,
'score': 21
},
{
'tord': 2,
'score': 22
}
]
}]
}
You can see that it is a nested array. I want to extract the element at matches.1.matches.0 . Result should look like this:
{
'tord': 2,
'score': 22
}
How do I do this ?