title: How to convert sequential JSON objects into csv using java
body: <p>I am having a JSON file with the data as below format</p>
  <pre><code>{&quot;sum_message_count&quot;:&quot;66&quot;,&quot;api_product&quot;:&quot;Test1&quot;,&quot;response_status_code&quot;:&quot;200&quot;}
  {&quot;sum_message_count&quot;:&quot;8&quot;,&quot;api_product&quot;:&quot;Test2&quot;,&quot;response_status_code&quot;:&quot;201&quot;}
  {&quot;sum_message_count&quot;:&quot;2&quot;,&quot;api_product&quot;:&quot;Test3&quot;,&quot;response_status_code&quot;:&quot;201&quot;}
  {&quot;sum_message_count&quot;:&quot;62&quot;,&quot;api_product&quot;:&quot;Test4&quot;,&quot;response_status_code&quot;:&quot;201&quot;}
  
  
  So I want these JSON objects into csv as following
  </code></pre>
  <p>sum_message_count   api_product    response_status_code
  66                Test1             200
  8                 Test2             201
  2                 Test3             201
  22                Test4             201</p>
  <p>Can someone help on the code snippet in java (main program)</p>