https://thejeshgn.com/2021/02/04/converting-json-to-csv-on-the-fly/
Converting JSON to CSV on the fly