# 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 from the objects.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_qwz6wyyzsco3fzcg?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-0283be02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4v-aW7vC30vb5nFi3yWet

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-0283be02 -d '<json body>'
```

Example prompt: Can you convert this JSON array into a CSV for me? Here's the data: [{"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 CSV string output quickly and cheaply ($0.05 USDC). Ideal for agents automating data export pipelines, generating downloadable files, or preparing data for spreadsheet tools. Best suited for flat data structures; if your JSON has nested objects, pre-flatten them first. Pairs naturally with the sibling CSV-to-JSON endpoint on the same platform for round-trip conversion.

## Known failure modes

- Input JSON is not a valid array — returns an error indicating malformed JSON
- Objects contain nested/complex values (arrays or sub-objects) rather than flat primitives — may fail or produce unexpected output
- Input exceeds the 64 KiB size limit — returns an error about payload too large
- Empty JSON array — may return only the header row or an empty result
- Inconsistent keys across objects — header may include all keys but some rows will have empty fields

## How this service works

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

## Output

A plain-text CSV string with a header row containing every key from the input objects, followed by one row per object, formatted according to RFC 4180 conventions. All flat values (strings, numbers, booleans, null) are represented as fields.

## 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-0283be02/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)
