There are plenty of solutions out there to check/access an object literal giving a string of dot notation, but what I need to do is SET an object literal based on a string o
function setDepth(obj, path, value) {
var levels = path.split(".");
var curLevel = obj;
var i = 0;
while (i < levels.length-1) {
curLevel = curLevel[levels[i]];
i++;
}
curLevel[levels[levels.length-1]] = value;
}