I have a document with the following structure:
{
"VehicleDetailId": 1,
"VehicleDetail": [
{
"Id": 1,
"Make": "BMW"
},
{
"Id": 1,
"Model": "ABDS"
},
{
"Id": 1,
"Trim": "5.6L/ASMD"
},
{
"Id": 1,
"Year": 2008
}
]
}
I want to retrieve a specific element from the VehicleDetail
array. For example, the second element:
{
"Id": 1,
"Model": "ABDS"
}
or the third:
{
"Id": 1,
"Trim": "5.6L/ASMD"
}
How can I do this?