I have an object called themesData:
themesData
var themesData = {} themesData.a = { key: \"value\" }; themesData.b = { key: \"another value\"};
themesData["a"].key does what you need and is equivalent to themesData.a.key, still the "array index style" notation allows you to dynamically generate index names.
themesData["a"].key
themesData.a.key
You can do it in this way:
var member="a"; //or B var rightMember=themesData[member].key;