Dynamically assigning object keys and values with "for"
<p>I have a function, <code>SWFUpload_config</code>, which takes an argument, <code>post_params_arr</code> - an object.</p>

<pre><code>post_params_arr = {"ajaxtask":"swfupload_files", "param": "2012"}
</code></pre>

<p>I need to parse that <code>post_params_arr</code> and dynamically add keys and values to <code>swfu_settings</code> in the following way (please notice that swfu_settings has by default 'SWFSESSID' : session_id and all other keys:values must be added from post_params_arr):</p>

<pre><code>function SWFUpload_config (post_params_arr) {
    var swfu_settings = {
        'SWFSESSID' : session_id,
        'ajaxtask' : 'swfupload_files',
        'param' : '2012'
    };
}
</code></pre>

<p>How can I achieve that? How would I parse <code>post_params_arr</code> inside <code>swfu_settings</code> where I am assigning keys and values?</p>
