I have an object called themesData:
themesData
var themesData = {} themesData.a = { key: \"value\" }; themesData.b = { key: \"another value\"};
You can do it in this way:
var member="a"; //or B var rightMember=themesData[member].key;