# Machine Shop – Normalize JSON

> Machine Shop – Normalize JSON is a paid API for AI agents from api.pay-forge.online, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-20).

Extracts and normalizes typed JSON fields from unstructured or semi-structured text input, returning a parsed JSON object.

## Facts

- Endpoint: POST https://api.pay-forge.online/v1/normalize-json?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/machine-shop-normalize-json-fc7d5a5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6Ae8l48wwLCLzqHQrXuVL

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 machine-shop-normalize-json-fc7d5a5c -d '<json body>'
```

Example prompt: Can you extract and normalize the JSON fields from this raw text block for me: 'user_id: 42, name: Alice, active: true, score: 98.6' — I need a clean typed JSON object back.

## When to prefer this

Choose this endpoint when you have raw, unstructured, or semi-structured text that needs to be converted into a clean, typed JSON object — especially for x402 quote inspection, API response normalization, or document field extraction. Prefer it over generic LLM prompting when you need consistent, schema-validated JSON output from text. Not suitable for live web fetching, scheduled monitoring, or third-party purchasing workflows.

## Known failure modes

- Input text exceeds 50,000 character limit — request rejected
- Input contains no parseable JSON-like fields — returns empty or minimal object
- Ambiguous field types may be inferred incorrectly (e.g. '1' could be string or number)
- Malformed input with deeply nested or conflicting structures may produce incomplete output
- No live web search — cannot fetch external URLs or documents on its own

## How this service works

Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.

## Output

Returns a JSON object with two fields: 'json' (the normalized JSON as a string) and 'value' (the parsed, typed JavaScript/JSON object with correct types for each field, e.g. numbers as numbers, booleans as booleans).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "title": "Text",
   "maxLength": 50000
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "json": "{\"a\":1,\"b\":2}",
  "value": {
   "a": 1,
   "b": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-normalize-json-fc7d5a5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.pay-forge.online](https://www.zero.xyz/host/api.pay-forge.online/llms.txt)
