{"name":"csv-to-jsonl","description":"Converts CSV or TSV data into JSON, JSONL/NDJSON, or column-oriented arrays. RFC 4180 parser with type inference (booleans, integers, floats, ISO dates, null tokens) and configurable delimiter, quote char, header presence, column rename, drop columns, and whitespace trim. Outputs newline-delimited JSON (jsonl), a JSON array (json), or column-oriented arrays (ndarray). Use it as a CSV to JSON, CSV to NDJSON, TSV to JSON, or spreadsheet to JSON converter, data pipeline preprocessor, or LLM training-data prep step.","price":"$0.02","method":"POST","input_schema":{"properties":{"csv":{"type":"string","description":"Raw CSV / TSV text. Up to ~1MB recommended."},"format":{"type":"string","enum":["jsonl","json","ndarray"],"description":"Output shape. 'jsonl' (default, newline-delimited JSON objects), 'json' (single JSON array), 'ndarray' (column-oriented arrays)."},"delimiter":{"type":"string","description":"Field delimiter. Default ','. Use '\\t' for TSV, ';' for European CSV, '|' for pipe-delimited."},"quote_char":{"type":"string","description":"Quote character for fields containing the delimiter or newlines. Default '\"'."},"has_header":{"type":"boolean","description":"Whether the first row is the header. Default true. If false, columns are named c1, c2, ..."},"rename":{"type":"object","description":"Optional column-rename map, e.g. { 'first name': 'first_name', 'DOB': 'date_of_birth' }."},"drop_columns":{"type":"array","description":"Column names to drop from the output."},"infer_types":{"type":"boolean","description":"If true (default), parse booleans, integers, floats, ISO-8601 dates, and null tokens. If false, every value stays a string."},"null_values":{"type":"array","description":"Strings to coerce to JSON null. Default ['', 'null', 'NULL', 'NA', 'N/A']."},"trim":{"type":"boolean","description":"Trim leading/trailing whitespace from each field. Default true."}},"required":["csv"]},"input_example":{"csv":"name,age\nAlice,30\nBob,25","format":"jsonl"},"output_example":{"jsonl":"{\"name\":\"Alice\",\"age\":30}\n{\"name\":\"Bob\",\"age\":25}","mime_type":"application/x-ndjson","row_count":2,"column_count":2,"columns":["name","age"],"format":"jsonl"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}