# DataVault JSON Formatter

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

Formats and pretty-prints a JSON string with optional indentation control

## Facts

- Endpoint: POST https://zetdatavault.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-f50eb694
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SNQva7IZgyvldQ_Fhw887

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

Example prompt: Can you format this JSON string for me with 4-space indentation so it's readable: '{"name":"Alice","age":30,"city":"New York"}'?

## When to prefer this

Use this endpoint when you need to parse a raw JSON string into a structured object or pretty-print minified JSON with configurable indentation. Ideal for lightweight, pay-per-call JSON formatting without spinning up a local parser.

## Known failure modes

- Invalid JSON string input causes parse failure and success:false
- Missing required 'json' field returns an error response
- Malformed or truncated JSON strings may fail silently or return partial results

## 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 a parsed JSON object under the 'data' key along with a boolean 'success' field indicating whether the formatting and parsing succeeded.

## 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-f50eb694/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zetdatavault.vercel.app](https://www.zero.xyz/host/zetdatavault.vercel.app/llms.txt)
