title: How to format a csv file using json data?
body: <p>I have a json file that I need to convert to a csv file, but I am a little wary of trusting a json-to-csv converter site as the outputted data seems to be incorrect... so I was hoping to get some help here!</p>
  
  <p>I have the following json file structure: </p>
  
  <pre><code>{
      "GroupName": "GrpName13",
      "Number": 3,
      "Notes": "Test Group ",
      "Units": [
      {
          "UnitNumber": "TestUnit13",
          "DataSource": "Factory",
          "ContractNumber": "TestContract13",
          "CarNumber": "2",
          "ControllerTypeMessageId" : 4,
          "NumberOfLandings": 4,
          "CreatedBy": "user1",
          "CommissionModeMessageId": 2,
          "Details": [
          {
              "DetailName": "TestFloor13",
              "DetailNumber": "5"
          }
          ],
          "UnitDevices": [
          {
              "DeviceTypeMessageId": 1,
              "CreatedBy": "user1"
          }                               
          ]
      }
      ]
  }
  </code></pre>
  
  <p>The issue I think Im seeing is that the converters seem to not be able to comprehend the many nested data values. And the reason I think the converters are wrong is because when I try to convert back to json using them, I dont receive the same structure. </p>
  
  <p>Does anyone know how to manually format this json into csv format, or know of a reliable converter than can handle nested values?</p>