If it's possible in your scenario that you could put the entire array variable you're after into a string you could use the eval()
function.
var r = { a:1, b: {b1:11, b2: 99}};
var s = "r.b.b2";
alert(eval(s)); // 99
I can feel people reeling in horror