title: Javascript unpack command line dictionary
body: <p>I am learning javascript.</p>
  
  <p>I am recieving a variable length of dictionary from the command line of the form</p>
  
  <pre><code>--myargs = {"foo":"bar", "foo2":"bar2"}
  </code></pre>
  
  <p>I can read the args by </p>
  
  <pre><code>var argv = require('minimist')(process.argv.slice(2));
  console.dir(argv)
  var myargs = argv["myargs"] 
  </code></pre>
  
  <p>I need to unpack the dictionary <code>myargs</code> like this-></p>
  
  <pre><code>my_new_args= {Key: "foo", Value: "bar", Key: "foo2", Value: "bar2" }; 
  </code></pre>
  
  <p>How do I do this in JS? </p>