CSV Formatting issue

Hi I am getting json data in attached format from a JOIN Snap when viewed in table, I want to make one CSV out of it but it is taking only headers of the first json object screenshot of which is attached below.


JSON form output


Table form output

Need help in how can I use column headers as the key and its value in a single CSV.


Sample data preview of SNAP CSV FORMATTER

What is the change that I have to make so that I can get all headers as previewed in the second screenshot?

Any help is appreciated.