Converts JSON files to CSV (pulling data from nested structures)