Alteryx interview question

Flatten a JSON object, can be recursive, how would you handle it?