title: convert list of objects to Json array
body: <p>I'm new to python and i have a list of objects like this.</p>
  
  <p><strong>Sample code</strong></p>
  
  <pre><code>&gt;&gt;&gt; for val in las.version:
  ...     print(val.mnemonic)
  ...     print(val.unit)
  ...     print(val.value)
  ...     print(val.descr)
  ...
  VERS
  
  1.2
  some description
  WRAP
  
  NO
  another description
  &gt;&gt;&gt;
  </code></pre>
  
  <p>I wanted to convert this as JSON array.</p>
  
  <pre><code>{  
     "versionInformation":[  
        {  
           "mnemonic":"VERS",
           "unit":"",
           "value":"2.0",
           "description":"some description"
        },
        {  
           "mnemonic":"WRAP",
           "unit":"",
           "value":"NO",
           "description":"another description"
        }
     ]
  }
  </code></pre>