How CSV to JSON Conversion Works
The parser splits the input on newlines (handling \n, \r\n, and quoted multi-line fields), takes the first row as headers, then maps each subsequent row to an object where keys come from the headers and values come from the row. Quoted fields are unescaped (doubled quotes become a single quote). Empty cells become empty strings; type inference is intentionally NOT done — everything stays a string so you don't get surprised by phone numbers being converted to scientific notation or leading zeros being stripped from IDs.