Is there a way to programmatically retrieve the parent object from a child object? My goal is to dynamically access the value of a property that belongs to the parent of a child object. For instance, in the given JSON data, I am interested in getting the driver of a specific car:
{
"driver": [
{
"id": 1,
"name": "Bob",
"age": "34",
"car": [
{
"make": "BMW",
"model": "3.20",
"colour": "Silver",
"mileage": [
{
"total": "350523",
"year": [
{
"2011": "3535",
"2012": "7852",
"2013": "8045"
}
],
"month": [
{
"december": "966",
"november": "546",
"october": "7657"
}
]
}
]
}
]
]
}