I am wondering how to do the following- I have the following data:
dta = { \"fielddata\": { \"text1\": \"4B030C2E-3D53-4DF8-A3535EF377B45DE5\",
var val = "fielddata.text1", acc = dta, // reference the base object parts = val.split('.'), // split the val into an Array of individual parts i; // Iterate the parts, updating acc each time for( i = 0; i < parts.length; i++ ) acc = acc[parts[i]];