title: JSON to CSV conversion using Java
body: <p>Is there any way to convert multiple JSON files into one CSV-file ?</p>
  
  <p>My JSON file is like this:</p>
  
  <pre><code>{
    "Title" : {
        "name" : "ABC",
        "id" : "1",
        "job": "Teacher"    
        },
        "Circle":{
                  "area":"2R"
          },
          "Triangle":{
                  "length":"45"
          }
  }
  </code></pre>
  
  <p>If you will see, this JSON has 3 roots and different elements under each root.
  How to convert this JSON to CSV so that it can be opened in excel and can be viewed as follows:</p>
  
  <pre><code>Title
  Name  ABC
  id    1
  job   Teacher
  Circle
  area  2r
  Triangle
  length  45
  </code></pre>
  
  <p>Can someone please suggest?</p>