Convert arbitrary JSON object to CSV