# ForgeMesh JSON to CSV Converter

> ForgeMesh JSON to CSV Converter is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Converts a structured JSON array into a spreadsheet-ready CSV file, unifying headers across objects and encoding nested fields inline, up to 10,000 rows.

## Facts

- Endpoint: POST https://x402.forgemesh.io/convert-json-to-spreadsheet
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-json-to-csv-converter-64b71441
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lZuoDoV_hRqjJjnILUliX

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 forgemesh-json-to-csv-converter-64b71441 -d '<json body>'
```

Example prompt: Can you convert this JSON array into a CSV file I can open in Excel? The data has nested fields and some objects are missing keys — I need headers unified across all objects and nested values encoded inline.

## When to prefer this

Choose this endpoint when you have a JSON array from an API response and need to produce a human-readable CSV for Excel, Google Sheets, or similar tools — especially when objects have inconsistent keys or nested fields that need to be flattened inline. Prefer this over manual serialization when correctness of quoting and header unification matters.

## Known failure modes

- Input JSON is not an array or parseable JSON string — returns an error
- Input exceeds 10,000 rows — truncated or rejected
- Malformed JSON input — parse error returned
- Empty array input — returns only a header row or empty response
- Deeply nested or circular structures may not serialize cleanly

## How this service works

Turns structured JSON arrays into spreadsheet-ready CSV, up to 10,000 rows, headers unified across objects, nested fields JSON-encoded inline, quotes escaped correctly. Useful for report generation, data exports, and any pipeline bridging an API response to a file a human opens in Excel or Sheets.

## Output

A CSV-formatted text output with a unified header row (merging keys across all objects in the input array) and up to 10,000 data rows. Nested objects/arrays are JSON-encoded inline within their cells, and all quotes are correctly escaped for spreadsheet compatibility.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "description": "array of objects (or a JSON string of one)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "csv": "name,value\na,1\nb,2",
  "rows": 2,
  "columns": [
   "name",
   "value"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-json-to-csv-converter-64b71441/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
