Can a value inside a nested object be accessed with a single string? For example, consider the object below:
skill: {
skillDetails: {
developerDetails: {
developerName: "mr. developer"
}
}
}
Is there a way to retrieve the value using a "JSON path" like this:
skill["skillDetails.developerDetails.developerName"]
?
I am exploring this possibility because I need to pass the key
& object into a function (that I cannot modify) which simply returns object[key]
Not certain if this is achievable, hence seeking advice from the community.
Thank you!