title: Shapefile into geojson conversion python 3
body: <pre><code>output_buffer = []
  for features in range(0,layer.GetFeatureCount()):
      feat = layer.GetNextFeature()
      geom = feat.GetGeometryRef()
      result = feat.ExportToJson()
      output_buffer.append(result)
  </code></pre>
  
  <p>When I convert into geojson, I get output, but only one feature is getting formatted as JSON</p>
  
  <p>I got  output like this:</p>
  
  <pre><code>{"geometry": {"coordinates": [488081.726322771, 2360837.62927308], "type": "Point"}, "type": "Feature", "id": 0, "properties": {"EntityHand": null, "Layer": "pipe", "Linetype": null, "Text": "BB_D2", "ExtendedEn": null, "SubClasses": null}}{"geometry": {"coordinates": [487523.119248441, 2361228.95273474], "type": "Point"}, "type": "Feature", "id": 1, "properties": {"EntityHand": null, "Layer": "pipe", "Linetype": null, "Text": "Mil_D2", "ExtendedEn": null, "SubClasses": null}}..................
  </code></pre>
  
  <p>I would like to get output like this:</p>
  
  <pre><code>{"geometry": {"coordinates": [488081.726322771, 2360837.62927308], "type": "Point"}, "type": "Feature", "id": 0, "properties": {"EntityHand": null, "Layer": "pipe", "Linetype": null, "Text": "BB_D2", "ExtendedEn": null, "SubClasses": null}}**,**    
  {"geometry": {"coordinates": [487523.119248441, 2361228.95273474], "type": "Point"}, "type": "Feature", "id": 1, "properties": {"EntityHand": null, "Layer": "pipe", "Linetype": null, "Text": "Mil_D2", "ExtendedEn": null, "SubClasses": null}}**,**
  </code></pre>