I need to fetch an attribute value in a JSON object dynamically, whose structure is unknown, but the path is configured. Please see the below example, thank you.
var perfData = {
"data": {
"inner":{
"TaxiFuel": "TestVal"
}
}
}
var path = "data.inner.TaxiFuel";// configure value
console.log(perfData.data.inner.TaxiFuel) // This works fine, Output: TestVal
console.log(perfData.path) //?? How can I use the path variable to get the value