Javascript object from string property and values
<p>Is it possible to create a property based on string values.</p>

<p>I have a Json object, which used to fill the UI (select box).</p>

<pre><code>"Conf" :{
    "Color":[
        {
            "Value":"BLUE"
        },
        {
            "Value":"GOLD"
        }   
    ],
    "Size":[
        {
            "Value":"12"
        },
        {
            "Value":"11"
        }
    ],
}
</code></pre>

<p>Based on the selection, I need to add it to an object (<code>Item.Conf</code> below).
<code>addSel</code> provides the selection type (<code>Color, Size</code> etc), and the value (<code>BLUE, 11</code> etc).
How can I add the selection as shown below.
So if the choice is <code>Color : BLUE</code>, I need to add it as  <code>Item.Conf[0].Color.Value = "BLUE"</code>
Is it possible? </p>

<pre><code>Item = {
    Conf: [],
    addSel: function(type, val){ //for example type="Size", val = "11"

        //.... need to selection to Conf 
        // add a member "Size" from type string
        //set its value as val
        console.log(Conf[0].Size.Value) //=&gt; 11
    }
}
</code></pre>

<p>In essence is it possible to make an object like</p>

<pre><code>"Size":{
    "Value": 11
}
</code></pre>

<p>from strings</p>
