{
  "x402Version": 2,
  "id": 74773,
  "slug": "74773",
  "resource": "https://naifgravity.com/api/x402/json-validity-check",
  "description": "JSON parse error diagnosis for AI agents: Diagnose JSON parse errors, malformed JSON syntax, duplicate object keys, unexpected trailing commas and schema inference problems in a sanitized sample (max 4096 UTF-8 bytes). Returns syntax location, bounded trailing-comma repair when supported, canonical JSON and validation evidence only after x402 payment. No secrets.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xEE39dAa7E6b20Fc772E9FDCA9762B69816738E25",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000000",
      "amountUsd": 1,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "additionalProperties": true,
    "description": "One-sample JSON result. INVALID is a diagnosis, not a successful repair.",
    "properties": {
      "correctedJson": {
        "description": "Canonical JSON; null for invalid input.",
        "type": [
          "string",
          "null"
        ]
      },
      "heavyWork": {
        "const": false
      },
      "inferredSchema": {
        "description": "Schema inferred from this sample, not the full external contract.",
        "type": [
          "object",
          "null"
        ]
      },
      "kind": {
        "const": "json_actionable_artifact"
      },
      "parseError": {
        "type": "string"
      },
      "productId": {
        "const": "json-validity-check"
      },
      "rawInputStored": {
        "const": false
      },
      "remainingScope": {
        "items": {
          "type": "string"
        },
        "type": "array"
      },
      "repairApplied": {
        "enum": [
          "none",
          "trailing_comma_removed"
        ],
        "type": "string"
      },
      "schemaNote": {
        "type": "string"
      },
      "status": {
        "enum": [
          "VALID",
          "REPAIRED_SAFE_PATTERN",
          "INVALID"
        ],
        "type": "string"
      },
      "validExample": {},
      "validationTest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "expected": {
            "const": "PASS"
          },
          "kind": {
            "const": "deterministic_round_trip"
          },
          "roundTripEqual": {
            "type": "boolean"
          },
          "runtime": {
            "const": "javascript"
          },
          "sha256": {
            "pattern": "^[0-9a-f]{64}$",
            "type": "string"
          },
          "topLevelType": {
            "enum": [
              "object",
              "array",
              "string",
              "integer",
              "number",
              "boolean",
              "null"
            ]
          }
        },
        "type": [
          "object",
          "null"
        ]
      }
    },
    "required": [
      "productId",
      "kind",
      "status",
      "correctedJson",
      "inferredSchema",
      "validExample",
      "validationTest",
      "rawInputStored",
      "heavyWork"
    ],
    "type": "object"
  },
  "tags": [],
  "sourceHost": "naifgravity.com",
  "lastUpdated": "2026-11-03T05:14:28.164Z",
  "quality": {},
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "naifgravity.com",
    "manifest_name": "NAIF Gravity",
    "source": "submitted",
    "source_manifest_url": "https://naifgravity.com/.well-known/x402",
    "submitted_at": "2026-11-03T05:14:28.164Z"
  },
  "exampleResponse": {
    "correctedJson": "string",
    "heavyWork": null,
    "inferredSchema": {},
    "kind": null,
    "parseError": "string",
    "productId": null,
    "rawInputStored": null,
    "remainingScope": [
      "string"
    ],
    "repairApplied": "none",
    "schemaNote": "string",
    "status": "VALID",
    "validExample": null,
    "validationTest": {
      "code": "string",
      "expected": null,
      "kind": null,
      "roundTripEqual": true,
      "runtime": null,
      "sha256": "string",
      "topLevelType": "object"
    }
  }
}