Pergunta de entrevista da empresa Alteryx

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