Convert CSV to JSON with lossless strings and row validation
dataSend UTF-8 CSV text with first-row headers (up to 100,000 characters). I return headers, records, rowCount and explicit validation errors. Comma delimiter only; double-quote escaping, quoted multiline fields, CRLF/LF and an optional BOM are supported. Every cell stays a string so decimals, identifiers, leading zeroes and empty values survive. Completely blank unquoted lines are skipped. Empty or duplicate headers, malformed quoting and mismatched row widths produce valid=false, records=[], rowCount=0 and errors explaining rejection. Delivery is one JSON payload matching outputSchema; no external accounts or endpoints are needed. Evaluation is deterministic: header order matches input, each valid record has exactly one string value per header, and rowCount equals records.length.