Parse CSV text into a JSON array of objects. Supports multiple delimiters, automatic type inference, header row detection, and whitespace trimming.
The utility reads CSV text (string input) and converts each row into a JSON object. Column names come from the header row (if enabled) or are auto-generated as col1, col2, etc.
When enabled, the parser automatically converts values:
"30" → 30 (number)"true" / "false" → true / false (boolean)"" (empty string)Disable type inference to keep all values as strings.
| Field | Type | Default | Description | |
|---|---|---|---|---|
| Delimiter | enum | , | Field separator: ,, ;, \t (tab), or `\ | ` (pipe) |
| First Row is Headers | boolean | true | Whether the first row contains column names | |
| Infer Types | boolean | true | Auto-convert numbers and booleans (disable for all-string output) | |
| Trim Whitespace | boolean | true | Remove leading/trailing whitespace from values | |
| Skip Empty Lines | boolean | true | Ignore blank rows in the CSV input |
| Name | Type | Default | Description |
|---|---|---|---|
| Delimiter | enum | , | Character used to separate fields in the CSV , ; \t | |
| First Row is Headers | boolean | true | Whether the first row contains column names |
| Infer Types | boolean | true | Auto-convert numbers and booleans (disable for all-string output) |
| Trim Whitespace | boolean | true | Remove leading/trailing whitespace from values |
| Skip Empty Lines | boolean | true | Ignore blank rows in the CSV input |
Parse this CSV text into JSON rows.1name,age,city2Alice,30,New York3Bob,25,London1[2 {3 "name": "Alice",4 "age": 30,5 "city": "New York"6 },7 {8 "name": "Bob",9 "age": 25,10 "city": "London"11 }12]curl -X POST https://your-domain.com/api/v1/utilities/convert.csv-to-json \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inputs":{"primary":"name,age,city\nAlice,30,New York\nBob,25,London"},"config":{"delimiter":",","hasHeaders":true,"inferTypes":true,"trimWhitespace":true,"skipEmptyLines":true}}'1[2 {3 "name": "Alice",4 "age": 30,5 "city": "New York"6 },7 {8 "name": "Bob",9 "age": 25,10 "city": "London"11 }12]