# agent402.tools JSON Pipeline (Validate + Format + CSV)

> agent402.tools JSON Pipeline (Validate + Format + CSV) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Runs a bundled three-step JSON workflow in one call: validates, pretty-prints, and converts JSON to CSV

## Facts

- Endpoint: POST https://agent402.tools/api/skill/json-pipeline
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-json-pipeline-validate-format-csv-6dddd56e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OPmejQhJzPwsIgK2_lPzv

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 agent402-tools-json-pipeline-validate-format-csv-6dddd56e -d '<json body>'
```

Example prompt: Can you run the full JSON pipeline on this data — validate it, pretty-print it, and convert it to CSV — all in one shot: '[{"name":"Alice","age":30},{"name":"Bob","age":25}]'?

## When to prefer this

Choose this endpoint when you need to validate, clean up, and export JSON data to CSV in a single round-trip and payment. It is ideal when you want to avoid chaining three separate API calls (json-validate, json-format, json-to-csv) individually. Prefer it when working with tabular JSON (arrays of objects) that maps naturally to CSV rows and columns.

## Known failure modes

- Invalid JSON input causes validation failure and may prevent downstream formatting/CSV steps
- Nested or non-tabular JSON structures may not convert cleanly to CSV
- Payment not processed — x402 payment flow fails
- Input JSON string is empty or missing the required 'json' field
- JSON is too large or complex, causing timeout or processing error

## How this service works

Bundled execution of the JSON pipeline workflow - Validate, pretty-print, and convert JSON to CSV in one pass - the complete JSON processing workflow. One x402 payment runs 3 underlying tools (json-validate, json-format, json-to-csv); partial-success per step.

## Output

Returns the results of three chained operations: (1) a validation report indicating whether the JSON is valid, (2) a pretty-printed/formatted version of the JSON, and (3) a CSV representation of the JSON data — all delivered in a single response for one $0.05 USDC x402 payment. May include partial success indicators if one of the three sub-tools encounters an issue.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "string",
   "description": "JSON string to process"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "json": "[{\"name\":\"Alice\",\"age\":30}]"
  },
  "pack": "json-pipeline",
  "steps": [
   {
    "ok": true,
    "slug": "json-validate",
    "result": {}
   },
   {
    "ok": true,
    "slug": "json-format",
    "result": {}
   },
   {
    "ok": true,
    "slug": "json-to-csv",
    "result": {}
   }
  ],
  "summary": "3/3 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-json-pipeline-validate-format-csv-6dddd56e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
