# x402 Micro Pay — JSON Flatten Skill

> x402 Micro Pay — JSON Flatten Skill is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-14).

Flattens a nested JSON object into a single-level key-value structure via a paid HTTP microservice endpoint using x402 micropayment rails.

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/json-flatten?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-micro-pay-json-flatten-skill-70c0d340
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5nOm3eQOeqC1ZrwDcwrKU

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 x402-micro-pay-json-flatten-skill-70c0d340 -d '<json body>'
```

Example prompt: Can you flatten this nested JSON object for me? Here it is: {"user":{"name":"Alice","address":{"city":"NYC","zip":"10001"}}} — I need it as a single-level flat structure.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use JSON flattening operation without provisioning your own infrastructure. It is ideal for AI agents that need to occasionally normalize nested API responses or config objects without a long-term service commitment. At $0.006 USDC per call it is cost-effective for low-to-moderate volume. Prefer a self-hosted solution for very high-volume batch operations.

## Known failure modes

- Missing required `input` field returns a 400-level error
- Invalid or non-object JSON body causes parsing failure
- Incorrect `type` or `method` fields in the input schema may cause rejection
- Payment failure via x402 protocol (insufficient USDC balance or payment not accepted) blocks the request
- Extremely large or deeply circular JSON objects may time out or error

## How this service works

Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.

## Output

Returns a JSON response with an `ok` boolean indicating success and the endpoint path, along with the flattened version of the input JSON object where all nested keys are collapsed into a single level (typically using dot notation or underscore-separated key paths).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {},
  "options": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "path": "/api/skills/json-flatten"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-micro-pay-json-flatten-skill-70c0d340/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
