Dynamic column header for JSON output

Looking for specific help here to show the API returned data in tabular format.

I am calling an API to fetch data from SQL Server database. I am getting the data in below format. The returned columns and data is dynamic.



I need to display the data in tabular format with column headers. such as below



How can we show the output data in a tabular format when we do not know the returned columns upfront ?