I have a Javascript object such as:
myObj = { name: { Value1: "a", Value2: "b" }}
how do I access Value1 ?
I can't use name, i.e. myObj.name
because it is some abstract class and name is different per input.
I do know the name but it is held in another variable that I receive from the server
so my current input is:
name = "someName"
and
myObj = { name: { Value1: "a", Value2: "b" }}
and I need to retrieve "a"
any suggestions ?