Supposing I have a JSON object
let dictionary = require('../../es.json');
let obj = JSON.parse(dictionary);
and I have a string variable
let jsonPropertyPath = 'property1.property2.property3'
Now, I would like to get the value of the property property1.property2.property3
of an object obj
. Is there any elegant way of doing this?