Imagine having a JSON object
let dictionary = require('../../es.json');
let obj = JSON.parse(dictionary);
Also, let's say there is a string variable
let jsonPropertyPath = 'property1.property2.property3'
Now, the goal is to retrieve the value of the property property1.property2.property3
from the obj
object. Is there an efficient way to accomplish this task?