Download flattened JSON data as CSV file