Data Transformation & Quality · x402 V1 + V2

JSON Repair Normalize

Use this service when you need this capability: conservatively repairs common JSON formatting defects, rejects ambiguous duplicate or unsafe keys, and emits deterministic canonical JSON.

Price and endpoint

LivePOSTBase USDC

0.005 USDC per call

x402 V1 + V2 exact payment on Base mainnet (base in V1; eip155:8453 in V2) using USDC. One HTTP 402 response carries the canonical V2 PAYMENT-REQUIRED header and equivalent V1 JSON body.

POST https://signalharness.ai/api/agent/services/json_repair_normalize/invoke

Purpose

Conservatively repairs common JSON formatting defects, rejects ambiguous duplicate or unsafe keys, and emits deterministic canonical JSON.

This service applies bounded processing to the supplied input. Review its schema, result fields, and limits for the exact supported capability.

Inputs

Request fields and validation limits
FieldTypeRequiredLimits
textstringRequiredMinimum length 1; Maximum length 65536

Example request body

{
  "text": "{example: true,}"
}
View complete input schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 1,
  "maxProperties": 1,
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    }
  }
}

Realistic output shape

Illustrative output from the canonical adapter fixture and schema. It is not a completed paid execution or a current live observation.

{
  "normalized": "example",
  "value": {},
  "repairs": [
    "example"
  ],
  "duplicateKeys": [
    "example"
  ]
}
View complete output schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 4,
  "maxProperties": 4,
  "required": [
    "normalized",
    "value",
    "repairs",
    "duplicateKeys"
  ],
  "properties": {
    "normalized": {
      "type": "string",
      "minLength": 1,
      "maxLength": 65536
    },
    "value": {
      "type": [
        "object",
        "array",
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "repairs": {
      "type": "array",
      "minItems": 0,
      "maxItems": 8,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      }
    },
    "duplicateKeys": {
      "type": "array",
      "minItems": 0,
      "maxItems": 64,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      }
    }
  }
}

Execution limits

  • MaxInputBytes: 131072
  • MaxOutputBytes: 262144
  • MaxConcurrentExecutions: 4
  • MaxArtifacts: 0
  • MaxArtifactBytes: 0
  • RateLimitPerMinute: 60

Timeout: 3000 ms. Full schemas are in OpenAPI.

Copyable unpaid request

This schema-valid request returns the canonical HTTP 402 challenge without executing the service. A payment-capable client validates the challenge, signs only with prior authority and budget, and retries the identical body.

curl -i -X POST https://signalharness.ai/api/agent/services/json_repair_normalize/invoke \
  -H "Content-Type: application/json" \
  --data '{"text":"{example: true,}"}'

Continue with the paid-call walkthrough →