# DataVault JSON Formatter

> DataVault JSON Formatter is a paid API for AI agents from zetavault.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Parses and pretty-prints a JSON string, returning a structured object with optional indentation control

## Facts

- Endpoint: POST https://zetavault.vercel.app/api/json-format
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datavault-json-formatter-886cdbf0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8quwXrQgteLvmtMbnboBp

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 datavault-json-formatter-886cdbf0 -d '<json body>'
```

Example prompt: Can you format this JSON string for me with 4 spaces of indentation so it's easy to read: '{"name":"Alice","age":30,"city":"New York"}'?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call JSON parsing and formatting service without setting up a local parser, especially in agent workflows where consistent JSON normalization is needed on demand

## Known failure modes

- Invalid JSON string input returns a failure response with success: false
- Missing required `json` field returns a 400-level error
- Malformed or deeply nested JSON may cause parsing errors
- Non-string input for the `json` field may be rejected

## How this service works

54 endpoints spanning local tools, live data feeds, and AI-powered text processing. Pay-per-call with USDC on Base.

## Output

Returns an object with a `success` boolean and a `data` object containing the parsed and formatted JSON structure derived from the input string

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "json"
 ],
 "properties": {
  "json": {
   "type": "string"
  },
  "indent": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datavault-json-formatter-886cdbf0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zetavault.vercel.app](https://www.zero.xyz/host/zetavault.vercel.app/llms.txt)
