# JSON Array to CSV Converter

> JSON Array to CSV Converter is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Converts a JSON array of flat objects into a CSV string with a header row containing every key.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_f4te7nmlrqhu4tkk?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/json-array-to-csv-converter-5da03b19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7Y99TMiFxb2yJXmVFSLJs

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 json-array-to-csv-converter-5da03b19 -d '<json body>'
```

Example prompt: Can you convert this JSON array into a CSV? Here it is: [{"name":"Alice","age":30,"city":"New York"},{"name":"Bob","age":25,"city":"London"}]

## When to prefer this

Choose this endpoint when you have a JSON array of flat objects and need a quick, cheap CSV conversion without setting up a local parser or library. Ideal for agents preparing data exports, generating downloadable reports, or feeding data into tools that accept CSV but not JSON. At $0.05 per call it is cost-effective for one-off conversions of up to 64 KiB of JSON.

## Known failure modes

- Input is not a valid JSON array — returns an error indicating the parse failure
- Input contains nested objects or arrays as values — behavior may be undefined or values may be stringified unexpectedly
- Input exceeds the 64 KiB size limit — returns an error about payload too large
- Input is an empty array — returns only the header or an empty response
- Input objects have inconsistent keys — missing values may appear as empty cells or columns may be misaligned

## How this service works

Writes a JSON array of flat objects as CSV, with a header of every key.

## Output

A CSV-formatted string where the first row is a header containing every key from the JSON objects, and each subsequent row represents one object from the input array, with values serialized as text, numbers, booleans, or empty for null.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "A JSON array of objects whose values are text, numbers, true, false or null, at most 64 KiB."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/json-array-to-csv-converter-5da03b19/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centralcity.ai](https://www.zero.xyz/host/centralcity.ai/llms.txt)
