Csv To Ndjson API
https://api.findutils.com/api/tools/csv-to-ndjson/execute Convert CSV into newline-delimited JSON (NDJSON, JSON Lines, .jsonl): one JSON object per line, keyed by the header row. Quoted fields, embedded line breaks and doubled quotes are read per RFC 4180; the delimiter is detected from the header when not given. Every value stays a string unless coerce is true, which turns true, false, null, an empty cell and plain numbers into JSON values while leaving leading zeros and integers of 2^53 or more as text. An empty header name becomes column_N and a duplicate gets a numeric suffix. A row wider than the header keeps the first N values and is reported by row number. Dotted header names are not rebuilt into nested objects.
Request body
application/json-
csv
string required
CSV text with a header row.
-
delimiter
string optional
Input field separator: ",", ";", "\t" or "|". Omit to detect it from the header line.
-
coerce
boolean optional
Turn true, false, null, empty cells and plain numbers into JSON values. Default false: every value is a string. Default
false. -
header
boolean optional
The first row holds the keys. Default true. When false, keys are column_1, column_2, ... Default
true.
Example arguments
Verified{
"csv": "id,name\n1,Ada\n2,Linus"
} More Data tools
- Api Docs Generator Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples) or as an OpenAP
- Bookmarks Html To Csv Convert a browser bookmarks.html export from Chrome, Firefox, Edge, Safari or any other browser that writes the Netscape bookmark format int
- Csv To Bookmarks Html Convert a CSV of links into a Netscape bookmarks.html file that Chrome, Firefox, Edge and Safari import.
- Csv To Json Parse CSV text into an array of objects keyed by the header row.
- Csv To Sql Convert CSV text into SQL INSERT statements, optionally preceded by a CREATE TABLE.
- Csv To Tsv Convert comma-separated values to tab-separated values, the format spreadsheet paste, psql and mysql --batch expect.