title: Replace square brackets and comma in JSON file
body: <p>I have a pandas dataframe <code>df</code> which is as follows:</p>
  
  <pre><code>| Name    | Age |
  |---------|-----|
  | Dinesh  | 23  |
  | Karthik | 34  |
  | Amit    |     |
  | Mishra  | 10  |
  </code></pre>
  
  <p>I need to convert this into JSON so that my output is:</p>
  
  <pre><code>{
      "Name": "Dinesh",
      "Age": 23
  }
  {
      "Name": "Karthik",
      "Age": 34
  }
  {
      "Name": "Amit",
      "Age": null
  }
  {
      "Name": "Mishra",
      "Age": 10
  }
  </code></pre>
  
  <p>I tried: </p>
  
  <pre><code>df.to_json('abcd', orient = 'records')
  </code></pre>
  
  <p>But I got the output for 'abcd' as:</p>
  
  <pre><code>[
      {
          "Name": "Dinesh",
          "Age": 23
      },
      {
          "Name": "Karthik",
          "Age": 34
      },
      {
          "Name": "Amit",
          "Age": null
      },
      {
          "Name": "Mishra",
          "Age": 10
      }
  ]
  </code></pre>
  
  <p>I want to eliminate square brackets and the comma after each curly bracket. How can I do this in Python?</p>