{"uid":"cap_sikgM8nM4ltA3F8CgS7Ei","slug":"x402-deployer-x402-deployer-workers-dev-43c10269","name":"CSV to JSONL / JSON Converter","description":"CSV to JSON / CSV to JSONL / CSV to NDJSON converter / TSV to JSON / spreadsheet to JSON / data pipeline preprocessor / LLM training-data prep. RFC 4180 parser. Type inference (booleans, integers, floats, ISO dates, null tokens). Configurable delimiter, quote char, header presence, column rename, drop columns, trim whitespace. Outputs newline-delimited JSON (jsonl), a JSON array (json), or column-oriented arrays (ndarray). Pure parser, no upstream API.","url":"https://x402-deployer.x402-deployer.workers.dev/csv-to-jsonl","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["csv"],"properties":{"csv":{"type":"string","description":"Raw CSV / TSV text. Up to ~1MB recommended."},"trim":{"type":"boolean","description":"Trim leading/trailing whitespace from each field. Default true."},"format":{"enum":["jsonl","json","ndarray"],"type":"string","description":"Output shape. 'jsonl' (default, newline-delimited JSON objects), 'json' (single JSON array), 'ndarray' (column-oriented arrays)."},"rename":{"type":"object","description":"Optional column-rename map, e.g. { 'first name': 'first_name', 'DOB': 'date_of_birth' }."},"delimiter":{"type":"string","description":"Field delimiter. Default ','. Use '\\t' for TSV, ';' for European CSV, '|' for pipe-delimited."},"has_header":{"type":"boolean","description":"Whether the first row is the header. Default true. If false, columns are named c1, c2, ..."},"quote_char":{"type":"string","description":"Quote character for fields containing the delimiter or newlines. Default '\"'."},"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']."},"drop_columns":{"type":"array","description":"Column names to drop from the output."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"jsonl":{"type":"string"},"format":{"type":"string"},"columns":{"type":"array","items":{"type":"string"}},"mime_type":{"type":"string"},"row_count":{"type":"integer"},"column_count":{"type":"integer"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"csv":"name,age,email,active\nAlice,30,alice@example.com,true\nBob,25,bob@example.com,false\nCharlie,35,charlie@example.com,true","trim":true,"format":"jsonl","delimiter":",","has_header":true,"infer_types":true},"type":"http","method":"POST","bodyType":"json"}},"response":{"jsonl":"{\"name\":\"Alice\",\"age\":30,\"email\":\"alice@example.com\",\"active\":true}\n{\"name\":\"Bob\",\"age\":25,\"email\":\"bob@example.com\",\"active\":false}\n{\"name\":\"Charlie\",\"age\":35,\"email\":\"charlie@example.com\",\"active\":true}","format":"jsonl","columns":["name","age","email","active"],"mime_type":"application/x-ndjson","row_count":3,"column_count":4}},"exampleRequest":{"csv":"name,age,email,active\nAlice,30,alice@example.com,true\nBob,25,bob@example.com,false\nCharlie,35,charlie@example.com,true","trim":true,"format":"jsonl","delimiter":",","has_header":true,"infer_types":true},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Yq1-QLzt40iqtOIR9SHHo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts CSV, TSV, or spreadsheet data into newline-delimited JSON (JSONL), JSON array, or column-oriented ndarray, with RFC 4180 parsing and automatic type inference","exampleAgentPrompt":"Convert this CSV data to newline-delimited JSONL with type inference on, using a comma delimiter and treating the first row as headers — also drop the 'internal_id' column and trim whitespace from all values.","exampleUseCases":null,"resultDescription":"Returns the parsed CSV as either a JSONL string (one JSON object per line), a JSON array of objects, or column-oriented arrays (ndarray), with all values type-inferred as booleans, integers, floats, ISO dates, or nulls as appropriate. The output reflects any column renames, dropped columns, and whitespace trimming specified in the request.","failureModes":["Malformed CSV that doesn't conform to RFC 4180 may produce parsing errors or misaligned columns","Specifying a column name to drop or rename that doesn't exist in the headers may return an error or be silently ignored","Providing non-CSV binary data will likely cause a parse failure","Missing required body fields (CSV text) will result in a 400-level error","Type inference ambiguity (e.g. date strings that don't match ISO format) may fall back to string type"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pure-parser CSV-to-JSON conversion with automatic type inference and no dependency on an external upstream API. Ideal for LLM training data preparation, data pipeline preprocessing, or when you need configurable output formats (JSONL, JSON array, or ndarray) with column manipulation (rename, drop, trim) in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-17T21:27:32.541Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:49:33.604Z","isFirstParty":false}