{
  "x402Version": 2,
  "id": 815,
  "slug": "815",
  "resource": "https://keyronne.com/api/validate-json",
  "description": "Validate a JSON value against a JSON Schema and coerce common LLM-output mistakes (numbers as strings, stringified booleans, scalars where arrays are expected, missing defaults, extra properties). Returns the coerced value plus a structured error report. Built for cleaning up LLM tool-call arguments and structured outputs. POST a JSON body like: {\"schema\":{\"type\":\"object\",\"required\":[\"name\",\"age\"],\"properties\":{\"name\":{\"type\":\"string\"},\"age\":{\"type\":\"integer\"}}},\"data\":{\"name\":\"Ada\",\"age\":\"36\"}}",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xB86F95EF5FA904318Ea9Df3b59AdCe099b478fC4",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "data": {
              "age": "36",
              "name": "Ada"
            },
            "schema": {
              "properties": {
                "age": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "age"
              ],
              "type": "object"
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "errors": [],
            "valid": true,
            "value": {
              "age": 36,
              "name": "Ada"
            },
            "warnings": [
              {
                "message": "coerced string \"36\" to integer",
                "path": "$.age"
              }
            ]
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "properties": {
              "body": {
                "properties": {
                  "coerce": {
                    "default": true,
                    "description": "Attempt type coercion and default-filling before validating.",
                    "type": "boolean"
                  },
                  "data": {
                    "description": "The candidate JSON value to validate and coerce."
                  },
                  "schema": {
                    "description": "JSON Schema (draft-07 style subset: type, properties, required, items, enum, const, additionalProperties, min/max constraints, pattern, default).",
                    "type": "object"
                  }
                },
                "required": [
                  "schema",
                  "data"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "type": "object"
          },
          "output": {
            "properties": {
              "errors": {
                "items": {
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "valid": {
                "type": "boolean"
              },
              "value": {
                "description": "The (possibly coerced) value."
              },
              "warnings": {
                "items": {
                  "properties": {
                    "message": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "keyronne.com",
  "lastUpdated": "2026-09-08T08:07:18.478Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-08T08:07:18.199Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "keyronne.com",
    "manifest_name": "keyronne.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}