Functions produce CSV with cells as strings in quotations. CSV is converted to array of arrays as strings. Functions produce JSON object with "headers" and "data" because JSON is not ordered like CSV.