mirrored listing x402 eip155:8453

Repair malformed JSON (trailing commas, single quotes, unquoted keys, code fences, truncat

Repair malformed JSON (trailing commas, single quotes, unquoted keys, code fences, truncated output) and optionally validate the result against a supplied JSON Schema. Returns the parsed value, the canonical text, a change log and validation errors.

Do you run x402.fenixfoundry.com? This listing was mirrored from Coinbase's public Bazaar. Claim it in 30 seconds — no account required — and it becomes verified, permanently overriding the mirrored copy.

Claim this listing
3000 (raw units)
price
5
calls / 30d
3
unique payers
2026-09-11
updated

Provider

x402.fenixfoundry.com · discovered, not yet claimed by its owner

Payment (x402 accepts[])

[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x737426d3eD53930B889b3f61774669a0FDf3BE54",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "maxTimeoutSeconds": 60
  }
]

Output schema

{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "input": "```json\n{name: \"ada\", tags: [\"math\", \"code\",]}\n```",
          "schema": {
            "properties": {
              "name": {
                "type": "string"
              },
              "tags": {
                "type": "array"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          }
        },
        "bodyType": "json",
        "method": "POST",
        "type": "http"
      },
      "output": {
        "example": {
          "changed": true,
          "changes": [
            "stripped markdown code fence",
            "repaired JSON syntax"
          ],
          "errors": [],
          "repaired": {
            "name": "ada",
            "tags": [
              "math",
              "code"
            ]
          },
          "repairedText": "{\"name\":\"ada\",\"tags\":[\"math\",\"code\"]}",
          "valid": true
        },
        "type": "json"
      }
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "input": {
          "additionalProperties": false,
          "properties": {
            "body": {
              "additionalProperties": false,
              "properties": {
                "input": {
                  "description": "Malformed JSON text — trailing commas, single quotes, unquoted keys, markdown code fences, truncated output, etc.",
                  "type": "string"
                },
                "schema": {
                  "description": "Optional JSON Schema (draft 2020-12) to validate the repaired value against.",
                  "type": "object"
                }
              },
              "required": [
                "input"
              ],
              "type": "object"
            },
            "bodyType": {
              "enum": [
                "json",
                "form-data",
                "text"
              ],
              "type": "string"
            },
            "method": {
              "enum": [
                "POST"
              ],
              "type": "string"
            },
            "type": {
              "const": "http",
              "type": "string"
            }
          },
          "required": [
            "type",
            "method",
            "bodyType",
            "body"
          ],
          "type": "object"
        },
        "output": {
          "properties": {
            "example": {
              "properties": {
                "changed": {
                  "type": "boolean"
                },
                "changes": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "errors": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "repaired": {},
                "repairedText": {
                  "type": "string"
                },
                "valid": {
                  "type": "boolean"
                }
              },
              "required": [
                "repaired",
                "repairedText",
                "changes"
              ],
              "type": "object"
            },
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}

Use it

curl

curl "https://x402.fenixfoundry.com/repair-json"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid

JavaScript

const res = await fetch("https://x402.fenixfoundry.com/repair-json");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}

Python

import httpx
res = httpx.get("https://x402.fenixfoundry.com/repair-json")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Machine-readable

Everything on this page is also available as clean JSON at /resources/2980.json, and this resource appears in /discovery/resources and /discovery/search.