I have an object Structured like below.
Now what my intention is to get the Capitals/State value on the run time dynamically using the property name, for example.
var PropertyName='Capitals';
JSON.parse(ValueList)[0].PropertyName;
How to achieve this. Thanks.