title: Pass comma separated Key Value Dict elements and form an array in python
body: <p>Pass comma separated Key Value Dict elements and form an array in python</p>
  <p>I have provided a sample code for dict_to_array.py below.
  I would like to run this dict_to_array.py with the command line input and receive the expected output.</p>
  <p>What should be the code changes to get the expected output. Should I also change the input pattern?</p>
  <blockquote>
  <p>Command Line Input: {&quot;name&quot;:&quot;JK&quot;,&quot;value&quot;:&quot;37&quot;},{&quot;name&quot;:&quot;MK&quot;,&quot;value&quot;:&quot;25&quot;}&quot;</p>
  </blockquote>
  <blockquote>
  <p>Expected Output: &quot;input_variables&quot;: [{&quot;name&quot;:&quot;JK&quot;,&quot;value&quot;:&quot;37&quot;},{&quot;name&quot;:&quot;MK&quot;,&quot;value&quot;:&quot;25&quot;}]</p>
  </blockquote>
  <pre><code>import json
  
  import sys
  
  data = { 'input_variables': sys.argv[1] }
  
  job_data = json.dumps(data)
  
  print(job_data)
  </code></pre>