Skip to content

561 Group Market

CBOR to Lossless Ordinary JSON

Browse

CBOR to Lossless Ordinary JSON

Decode one CBOR item into ordinary JSON without silent loss. Accept nonpreferred encodings and indefinite arrays/text/maps; require unique text map keys, finite JSON-representable values and paired Unicode. Refuse bytes, tags, simple/undefined values, unsafe CBOR integers and negative zero before payment. Return the value and both byte lengths. Maximum 65536 CBOR/JSON bytes, 8192 parsing events and depth 64; no fetch.

Seller-listed; delivery not independently established — A listing is not a completed purchase. The live HTTP 402 challenge supplies current payment terms.

Price preview
from $0.0012 USDC
Method
POST
Endpoint
https://market.561.group/v1/data/cbor-json-decode
Seller
engineering
Source-rights state
not-declared
Offer NI
ni:///sha-256;yrybXCtMJWasz734OAvFHOtMUG059qlxFYkTsWmFebM
Claim cell
ni:///sha-256;5BmZJ5Bah4FmeDLDg7ENcWYVxRoZ9WhswB2IY3d3lrI
Operation law
ni:///sha-256;x3ohiBTH4GbSU2RgeVojOPsC9ksyG4dz1d1cWdQom2Y
  • cbor
  • cbor-json-decode
  • data
  • ni:///sha-256;yrybXCtMJWasz734OAvFHOtMUG059qlxFYkTsWmFebM
  • @red-cup-engineering/cbor-services-section
  • engineering

The seller offers this resource under the stated method and contract. The price is a preview, not payment authorization, settlement or a promise of delivery.

Request contract
{
  "maxBytes": 524800,
  "bodySchema": {
    "type": "object",
    "additionalProperties": false,
    "required": [
      "carrier"
    ],
    "properties": {
      "carrier": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "mediaType",
          "contentBase64"
        ],
        "properties": {
          "mediaType": {
            "const": "application/cbor"
          },
          "contentBase64": {
            "type": "string",
            "maxLength": 87384
          }
        }
      }
    }
  }
}
Seller-declared request example
{
  "method": "POST",
  "url": "https://market.561.group/v1/data/cbor-json-decode",
  "headers": {
    "accept": "application/json",
    "content-type": "application/json"
  },
  "body": {
    "carrier": {
      "mediaType": "application/cbor",
      "contentBase64": "n2FhAf8="
    }
  }
}
Unsigned request example (copy and run)
curl --include --request POST --header 'accept: application/json' --header 'content-type: application/json' --data-raw '{"carrier":{"mediaType":"application/cbor","contentBase64":"n2FhAf8="}}' --url 'https://market.561.group/v1/data/cbor-json-decode'

An unsigned request may still reach a service or may be refused before a 402 price quote. It does not authorize or settle a payment. Review the request and approve current terms separately.

Declared output
{
  "schema": {
    "type": "object",
    "required": [
      "value",
      "byteLength",
      "jsonByteLength"
    ],
    "properties": {
      "value": {
        "type": [
          "object",
          "array",
          "string",
          "number",
          "boolean",
          "null"
        ],
        "description": "Ordinary JSON, at most 65536 UTF-8 bytes, 8192 nodes/parsing events and depth 64. Finite numbers, well-formed Unicode, no negative zero."
      },
      "byteLength": {
        "type": "integer",
        "minimum": 1,
        "maximum": 65536
      },
      "jsonByteLength": {
        "type": "integer",
        "minimum": 1,
        "maximum": 65536
      }
    }
  },
  "example": {
    "value": [
      "a",
      1
    ],
    "byteLength": 5,
    "jsonByteLength": 7
  }
}

How to buy with x402

  1. Review the request before sending it. It may still reach a service. An admitted unpaid request receives HTTP 402 and a PAYMENT-REQUIRED header with its current amount, asset, network and payee.
  2. Your x402 client signs the accepted terms and repeats the same request with PAYMENT-SIGNATURE.
  3. A successful settled response contains the purchased result and its PAYMENT-RESPONSE receipt.

How x402 purchasing works

Source and machine access

The source SKU, claim cell and operation law above are the identities used by the machine catalogue and this page.

Need a correction or accessible service help? Report this offer problem. Do not include wallet recovery phrases, passwords, payment signatures or other secrets in an inquiry.