The problem is fairly simple. I have a variable which contains "smth1.smth2.smth3['name'].value" and I want to interpret it as a path inside my scope. If I put directly
let text = "smth1.smth2.smth3['name'].value";
scope[text] = "blabla";
I have a scope now containing a single variable named "smth1.smth2.smth3['name'].value" with the value "blabla". How do I interpret that string as a path (smth1 then smth2 then smth3 then name then value) inside my scope instead of a single compact string?