title: How to convert csv file to JSON file by using python
body: <p>I need to convert a csv file into a JSON object (preferably using Python)</p>
  
  <p>Input file is :</p>
  
  <pre><code>**Jun 28 23:59:56 MUM-NM-FG-FW/MUM-NM-FG-FW date=2014-06-28 time=23:59:59 devname=MUM-NM-FG-FW-PRI device_id=FG300C3911600511 log_id=0038000004 type=traffic subtype=other pri=notice vd=Sify-VDOM src=XXX.XXX.XXX.XXX src_port=60276 src_int="port5" dst=XXX.XXX.XXX.XXX 
  
  
  Jun 28 23:59:56 MUM-NM-FG-FW/MUM-NM-FG-FW date=2014-06-28 time=23:59:59 devname=MUM-NM-FG-FW-PRI device_id=FG300C3911600511 log_id=0038000004 type=traffic subtype=other pri=notice vd=Sify-VDOM src=XXX.XXX.XXX.XXX  src_port=60277 src_int="port5" dst=XXX.XXX.XXX.XXX** 
  </code></pre>
  
  <p>Result is like:</p>
  
  <pre><code>{"date": "2014-06-28","time": "22:59:59","devname": "MUM-NM-FG-FW-PRI","device_id": "FG300C3911600511","log_id": "0038000004","type": "traffic","subtype": "other","pri": "notice","vd": "Sify-VDOM","src": "XXX.XXX.XXX.XXX","src_port": "60276","src_int": "port5","dst": "XXX.XXX.XXX.XXX" }
  
  {"date": "2014-06-28","time": "22:59:59","devname": "MUM-NM-FG-FW-PRI","device_id": "FG300C3911600511","log_id": "0038000004","type": "traffic","subtype": "other","pri": "notice","vd": "Sify-VDOM","src": "XXX.XXX.XXX.XXX","src_port": "60277","src_int": "port5","dst": "XXX.XXX.XXX.XXX" }
  </code></pre>
  
  <p>Please help on this.</p>