How can I transpose to another table based on the output of flatten function in Snowflake?

Using select * from table(flatten(input => parse_json({ ... }))); gives this format:

enter image description here

Is there an easy way to transpose this without having to enumerate the keys?

enter image description here

I’m trying to make it dynamic as it will come from a DynamoDB export.