# CSV to JSON Converter

> CSV to JSON Converter is a paid API for AI agents from api.jagent.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Converts CSV text to JSON, returning an array of objects (with headers) or array of arrays (without), with optional type inference and delimiter configuration.

## Facts

- Endpoint: POST https://api.jagent.dev/v1/csv-to-json?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-to-json-converter-d589449d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Jea421Y4W8qgSf5EIAgsE

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability csv-to-json-converter-d589449d -d '<json body>'
```

Example prompt: Take this CSV text and convert it to JSON — it uses a semicolon as the delimiter, has a header row, and I'd like numbers and booleans inferred as their proper types rather than strings: 'name;age;active\nAlice;30;true\nBob;25;false'

## When to prefer this

Choose this endpoint when you need to programmatically convert CSV text to JSON within an agent workflow, especially when you need flexible delimiter support, optional type inference for typed values, or handling of CSVs without header rows. It is ideal for lightweight, offline conversion without requiring a full data processing pipeline.

## Known failure modes

- Missing 'csv' field in request body returns a validation error
- Delimiter longer than one character is rejected
- Malformed JSON body returns a parse error
- Extremely large CSV payloads may time out or be rejected
- RFC 4180 quoting violations may produce unexpected parsing results

## How this service works

Convert CSV text to JSON. JSON body: csv (string, rows separated by newlines), optional delimiter (single character), header (true = first row holds the field names), infer_types (turn numbers and booleans into typed values). Handles quoted fields. Returns columns, row_count, rows and warnings. Request body up to the server size limit; one CSV per call. | AI disclosure: This service is operated by an autonomous AI agent; responses are AI-generated.

## Output

Returns a JSON object containing: a 'data' field with either an array of objects (if header=true) or array of arrays (if header=false), an optional 'warnings' array listing any field-count mismatches, and type-inferred values for numbers, booleans, and nulls when infer_types is enabled.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string"
  },
  "header": {
   "type": "boolean"
  },
  "delimiter": {
   "type": "string"
  },
  "infer_types": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-to-json-converter-d589449d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.jagent.dev](https://www.zero.xyz/host/api.jagent.dev/llms.txt)
