{
  "x402Version": 2,
  "id": 34874,
  "slug": "34874",
  "resource": "https://data-tools.use.x402atlas.com/json-canonicalize",
  "description": "JSON canonicalization — canonicalize structured data with RFC 8785 JCS; return canonical JSON text, UTF-8 byte length and SHA-256 hash for integrity checks, signature preparation and deduplication. Uses binary64 rounding and strict Unicode/duplicate-key checks; rejects negative zero, overflow and nonzero underflow.",
  "type": "http",
  "serviceName": "JSON Canonicalizer",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "additionalProperties": false,
        "description": "Complete structured-data result",
        "properties": {
          "_atlas": {
            "additionalProperties": false,
            "description": "Optional Atlas documentation metadata injected by the platform",
            "properties": {
              "docs": {
                "description": "Documentation URL",
                "format": "uri",
                "maxLength": 512,
                "type": "string"
              },
              "related": {
                "description": "Related Atlas routes",
                "items": {
                  "additionalProperties": false,
                  "description": "Related route",
                  "properties": {
                    "bridge": {
                      "description": "Bridge name",
                      "type": "string"
                    },
                    "docs": {
                      "description": "Documentation URL",
                      "type": "string"
                    },
                    "summary": {
                      "description": "Capability summary",
                      "type": "string"
                    },
                    "url": {
                      "description": "Paid route URL",
                      "type": "string"
                    }
                  },
                  "required": [
                    "bridge",
                    "url",
                    "docs",
                    "summary"
                  ],
                  "type": "object"
                },
                "maxItems": 3,
                "type": "array"
              }
            },
            "required": [
              "docs"
            ],
            "type": "object"
          },
          "algorithm_version": {
            "const": "rfc8785-jcs-v1",
            "description": "Pinned deterministic algorithm or profile",
            "type": "string"
          },
          "canonical_json": {
            "description": "RFC 8785 JCS text for hashing or signature preparation; UTF-16 key order and ECMAScript binary64 numbers, without Unicode normalization",
            "type": "string"
          },
          "input": {
            "additionalProperties": false,
            "description": "Normalized input summary",
            "properties": {
              "node_count": {
                "description": "Value nodes",
                "maximum": 50000,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "node_count"
            ],
            "type": "object"
          },
          "operation": {
            "const": "json-canonicalize",
            "description": "Stable capability operation, identical across packaging variants",
            "type": "string"
          },
          "sha256": {
            "description": "Lowercase SHA-256 of canonical UTF-8 bytes",
            "pattern": "^[0-9a-f]{64}$",
            "type": "string"
          },
          "utf8_bytes": {
            "description": "UTF-8 bytes in canonical text",
            "maximum": 1048576,
            "minimum": 0,
            "type": "integer"
          },
          "warnings": {
            "description": "Deterministic warnings; empty array when none",
            "items": {
              "description": "Warning message; no original cell or document values",
              "type": "string"
            },
            "maxItems": 100,
            "type": "array"
          }
        },
        "required": [
          "algorithm_version",
          "canonical_json",
          "input",
          "operation",
          "sha256",
          "utf8_bytes",
          "warnings"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "utilities",
      "info": {
        "input": {
          "body": {
            "value": {
              "literals": [
                null,
                true,
                false
              ],
              "numbers": [
                333333333.3333333,
                1e+30,
                4.5,
                0.002,
                1e-27
              ],
              "string": "€$\u000f\nA'B\"\\\\\"/"
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "algorithm_version": "rfc8785-jcs-v1",
            "canonical_json": "{\"literals\":[null,true,false],\"numbers\":[333333333.3333333,1e+30,4.5,0.002,1e-27],\"string\":\"€$\\u000f\\nA'B\\\"\\\\\\\\\\\"/\"}",
            "input": {
              "node_count": 12
            },
            "operation": "json-canonicalize",
            "sha256": "2d5e01a318d0f0879ab568c4be289c8b1f64ef8921a53c6277d5e069978baacb",
            "utf8_bytes": 118,
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "description": "Strict JSON canonicalization request",
                "properties": {
                  "value": {
                    "description": "JSON value to canonicalize, <=50000 nodes; JCS rejects negative zero, overflow and nonzero underflow and uses binary64 rounding; unique decoded keys, valid Unicode, depth <=64, finite JSON numeric tokens <=1024 bytes and exponent magnitude <=4096",
                    "type": [
                      "object",
                      "array",
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  }
                },
                "required": [
                  "value"
                ],
                "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": {
                "additionalProperties": false,
                "description": "Complete structured-data result",
                "properties": {
                  "_atlas": {
                    "additionalProperties": false,
                    "description": "Optional Atlas documentation metadata injected by the platform",
                    "properties": {
                      "docs": {
                        "description": "Documentation URL",
                        "format": "uri",
                        "maxLength": 512,
                        "type": "string"
                      },
                      "related": {
                        "description": "Related Atlas routes",
                        "items": {
                          "additionalProperties": false,
                          "description": "Related route",
                          "properties": {
                            "bridge": {
                              "description": "Bridge name",
                              "type": "string"
                            },
                            "docs": {
                              "description": "Documentation URL",
                              "type": "string"
                            },
                            "summary": {
                              "description": "Capability summary",
                              "type": "string"
                            },
                            "url": {
                              "description": "Paid route URL",
                              "type": "string"
                            }
                          },
                          "required": [
                            "bridge",
                            "url",
                            "docs",
                            "summary"
                          ],
                          "type": "object"
                        },
                        "maxItems": 3,
                        "type": "array"
                      }
                    },
                    "required": [
                      "docs"
                    ],
                    "type": "object"
                  },
                  "algorithm_version": {
                    "const": "rfc8785-jcs-v1",
                    "description": "Pinned deterministic algorithm or profile",
                    "type": "string"
                  },
                  "canonical_json": {
                    "description": "RFC 8785 JCS text for hashing or signature preparation; UTF-16 key order and ECMAScript binary64 numbers, without Unicode normalization",
                    "type": "string"
                  },
                  "input": {
                    "additionalProperties": false,
                    "description": "Normalized input summary",
                    "properties": {
                      "node_count": {
                        "description": "Value nodes",
                        "maximum": 50000,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "node_count"
                    ],
                    "type": "object"
                  },
                  "operation": {
                    "const": "json-canonicalize",
                    "description": "Stable capability operation, identical across packaging variants",
                    "type": "string"
                  },
                  "sha256": {
                    "description": "Lowercase SHA-256 of canonical UTF-8 bytes",
                    "pattern": "^[0-9a-f]{64}$",
                    "type": "string"
                  },
                  "utf8_bytes": {
                    "description": "UTF-8 bytes in canonical text",
                    "maximum": 1048576,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "warnings": {
                    "description": "Deterministic warnings; empty array when none",
                    "items": {
                      "description": "Warning message; no original cell or document values",
                      "type": "string"
                    },
                    "maxItems": 100,
                    "type": "array"
                  }
                },
                "required": [
                  "algorithm_version",
                  "canonical_json",
                  "input",
                  "operation",
                  "sha256",
                  "utf8_bytes",
                  "warnings"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "json-canonicalize",
        "rfc8785",
        "jcs",
        "sha256",
        "structured-data"
      ]
    }
  },
  "tags": [
    "json-canonicalize",
    "rfc8785",
    "jcs",
    "sha256",
    "structured-data",
    "bazaar"
  ],
  "sourceHost": "data-tools.use.x402atlas.com",
  "lastUpdated": "2026-10-12T23:05:56.952Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T23:05:56.82Z"
  },
  "metadata": {
    "serviceName": "JSON Canonicalizer",
    "extensions": {
      "bazaar": {
        "category": "utilities",
        "info": {
          "input": {
            "body": {
              "value": {
                "literals": [
                  null,
                  true,
                  false
                ],
                "numbers": [
                  333333333.3333333,
                  1e+30,
                  4.5,
                  0.002,
                  1e-27
                ],
                "string": "€$\u000f\nA'B\"\\\\\"/"
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "algorithm_version": "rfc8785-jcs-v1",
              "canonical_json": "{\"literals\":[null,true,false],\"numbers\":[333333333.3333333,1e+30,4.5,0.002,1e-27],\"string\":\"€$\\u000f\\nA'B\\\"\\\\\\\\\\\"/\"}",
              "input": {
                "node_count": 12
              },
              "operation": "json-canonicalize",
              "sha256": "2d5e01a318d0f0879ab568c4be289c8b1f64ef8921a53c6277d5e069978baacb",
              "utf8_bytes": 118,
              "warnings": []
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "description": "Strict JSON canonicalization request",
                  "properties": {
                    "value": {
                      "description": "JSON value to canonicalize, <=50000 nodes; JCS rejects negative zero, overflow and nonzero underflow and uses binary64 rounding; unique decoded keys, valid Unicode, depth <=64, finite JSON numeric tokens <=1024 bytes and exponent magnitude <=4096",
                      "type": [
                        "object",
                        "array",
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "value"
                  ],
                  "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": {
                  "additionalProperties": false,
                  "description": "Complete structured-data result",
                  "properties": {
                    "_atlas": {
                      "additionalProperties": false,
                      "description": "Optional Atlas documentation metadata injected by the platform",
                      "properties": {
                        "docs": {
                          "description": "Documentation URL",
                          "format": "uri",
                          "maxLength": 512,
                          "type": "string"
                        },
                        "related": {
                          "description": "Related Atlas routes",
                          "items": {
                            "additionalProperties": false,
                            "description": "Related route",
                            "properties": {
                              "bridge": {
                                "description": "Bridge name",
                                "type": "string"
                              },
                              "docs": {
                                "description": "Documentation URL",
                                "type": "string"
                              },
                              "summary": {
                                "description": "Capability summary",
                                "type": "string"
                              },
                              "url": {
                                "description": "Paid route URL",
                                "type": "string"
                              }
                            },
                            "required": [
                              "bridge",
                              "url",
                              "docs",
                              "summary"
                            ],
                            "type": "object"
                          },
                          "maxItems": 3,
                          "type": "array"
                        }
                      },
                      "required": [
                        "docs"
                      ],
                      "type": "object"
                    },
                    "algorithm_version": {
                      "const": "rfc8785-jcs-v1",
                      "description": "Pinned deterministic algorithm or profile",
                      "type": "string"
                    },
                    "canonical_json": {
                      "description": "RFC 8785 JCS text for hashing or signature preparation; UTF-16 key order and ECMAScript binary64 numbers, without Unicode normalization",
                      "type": "string"
                    },
                    "input": {
                      "additionalProperties": false,
                      "description": "Normalized input summary",
                      "properties": {
                        "node_count": {
                          "description": "Value nodes",
                          "maximum": 50000,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "node_count"
                      ],
                      "type": "object"
                    },
                    "operation": {
                      "const": "json-canonicalize",
                      "description": "Stable capability operation, identical across packaging variants",
                      "type": "string"
                    },
                    "sha256": {
                      "description": "Lowercase SHA-256 of canonical UTF-8 bytes",
                      "pattern": "^[0-9a-f]{64}$",
                      "type": "string"
                    },
                    "utf8_bytes": {
                      "description": "UTF-8 bytes in canonical text",
                      "maximum": 1048576,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "warnings": {
                      "description": "Deterministic warnings; empty array when none",
                      "items": {
                        "description": "Warning message; no original cell or document values",
                        "type": "string"
                      },
                      "maxItems": 100,
                      "type": "array"
                    }
                  },
                  "required": [
                    "algorithm_version",
                    "canonical_json",
                    "input",
                    "operation",
                    "sha256",
                    "utf8_bytes",
                    "warnings"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "json-canonicalize",
          "rfc8785",
          "jcs",
          "sha256",
          "structured-data"
        ]
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "data-tools.use.x402atlas.com",
    "manifest_name": "data-tools.use.x402atlas.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {
      "_atlas": {
        "docs": "https://example.com",
        "related": [
          {
            "bridge": "string",
            "docs": "string",
            "summary": "string",
            "url": "string"
          }
        ]
      },
      "algorithm_version": "string",
      "canonical_json": "string",
      "input": {
        "node_count": 0
      },
      "operation": "string",
      "sha256": "string",
      "utf8_bytes": 0,
      "warnings": [
        "string"
      ]
    },
    "type": "string"
  }
}