Skip to content

561 Group Market

RFC 9651 Structured Field to Typed JSON

Browse

RFC 9651 Structured Field to Typed JSON

Parse native RFC 9651 Item/List/Dictionary into tagged JSON. Preserve all eight bare types: integral decimals, 15-digit epoch seconds, binary Base64, Unicode Display Strings, plus ordered parameters/maps and inner lists. RFC duplicate wire keys overwrite in place. Up to 16384 field bytes and 65536 JSON bytes. Malformed fields refused before payment; not legacy HTTP grammar.

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/http-field-to-json
Seller
engineering
Source-rights state
not-declared
Offer NI
ni:///sha-256;Kv0JtQxX-x2wF2CquqKyf7tBGz7PtnccymnSZTgZgTY
Claim cell
ni:///sha-256;2q8MtnIphSNv4njipkdGXnCvYb_3GLm-MmXs4KVVwH8
Operation law
ni:///sha-256;Mh1p52FUctZVAXH0PVBtje53Ag6Q3lJaACQtwZyuQnA
  • http-field-transformations
  • http-field-to-json
  • data
  • ni:///sha-256;Kv0JtQxX-x2wF2CquqKyf7tBGz7PtnccymnSZTgZgTY
  • @red-cup-engineering/computer-serialized-content-engineering-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": 102400,
  "bodySchema": {
    "type": "object",
    "additionalProperties": false,
    "required": [
      "kind",
      "text"
    ],
    "properties": {
      "kind": {
        "type": "string",
        "enum": [
          "item",
          "list",
          "dictionary"
        ]
      },
      "text": {
        "type": "string",
        "maxLength": 16384,
        "description": "ASCII structured field value, up to 16384 bytes. Select its defined container; not legacy Accept, Cookie or Cache-Control grammar."
      }
    }
  }
}
Seller-declared request example
{
  "method": "POST",
  "url": "https://market.561.group/v1/data/http-field-to-json",
  "headers": {
    "accept": "application/json",
    "content-type": "application/json"
  },
  "body": {
    "kind": "dictionary",
    "text": "u=1, i, label=%\"caf%c3%a9\", expiry=@1735689600, ratio=1.0"
  }
}
Unsigned request example (copy and run)
curl --include --request POST --header 'accept: application/json' --header 'content-type: application/json' --data-raw '{"kind":"dictionary","text":"u=1, i, label=%\"caf%c3%a9\", expiry=@1735689600, ratio=1.0"}' --url 'https://market.561.group/v1/data/http-field-to-json'

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": {
    "oneOf": [
      {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "value"
        ],
        "properties": {
          "kind": {
            "const": "item"
          },
          "value": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "value",
              "parameters"
            ],
            "properties": {
              "type": {
                "const": "item"
              },
              "value": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "const": "integer"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": -999999999999999,
                        "maximum": 999999999999999
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "const": "decimal"
                      },
                      "value": {
                        "type": "number",
                        "minimum": -999999999999.999,
                        "maximum": 999999999999.999
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "const": "string"
                      },
                      "value": {
                        "type": "string",
                        "description": "Structured-field string or token"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "const": "token"
                      },
                      "value": {
                        "type": "string",
                        "description": "Structured-field string or token"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "const": "byteSequence"
                      },
                      "value": {
                        "type": "string",
                        "description": "Canonical padded RFC 4648 Base64"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "const": "boolean"
                      },
                      "value": {
                        "type": "boolean"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "const": "date"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": -999999999999999,
                        "maximum": 999999999999999
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "type",
                      "value"
                    ],
                    "properties": {
                      "type": {
                        "const": "displayString"
                      },
                      "value": {
                        "type": "string",
                        "description": "Well-formed Unicode"
                      }
                    }
                  }
                ]
              },
              "parameters": {
                "type": "array",
                "maxItems": 2048,
                "description": "Ordered, distinct [key, tagged bare value] pairs; native RFC key grammar.",
                "items": {
                  "type": "array",
                  "minItems": 2,
                  "maxItems": 2
                }
              }
            }
          }
        }
      },
      {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "value"
        ],
        "properties": {
          "kind": {
            "const": "list"
          },
          "value": {
            "type": "array",
            "maxItems": 2048,
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "value",
                    "parameters"
                  ],
                  "properties": {
                    "type": {
                      "const": "item"
                    },
                    "value": {
                      "oneOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "type",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "integer"
                            },
                            "value": {
                              "type": "integer",
                              "minimum": -999999999999999,
                              "maximum": 999999999999999
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "type",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "decimal"
                            },
                            "value": {
                              "type": "number",
                              "minimum": -999999999999.999,
                              "maximum": 999999999999.999
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "type",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "string"
                            },
                            "value": {
                              "type": "string",
                              "description": "Structured-field string or token"
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "type",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "token"
                            },
                            "value": {
                              "type": "string",
                              "description": "Structured-field string or token"
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "type",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "byteSequence"
                            },
                            "value": {
                              "type": "string",
                              "description": "Canonical padded RFC 4648 Base64"
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "type",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "boolean"
                            },
                            "value": {
                              "type": "boolean"
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "type",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "date"
                            },
                            "value": {
                              "type": "integer",
                              "minimum": -999999999999999,
                              "maximum": 999999999999999
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "type",
                            "value"
                          ],
                          "properties": {
                            "type": {
                              "const": "displayString"
                            },
                            "value": {
                              "type": "string",
                              "description": "Well-formed Unicode"
                            }
                          }
                        }
                      ]
                    },
                    "parameters": {
                      "type": "array",
                      "maxItems": 2048,
                      "description": "Ordered, distinct [key, tagged bare value] pairs; native RFC key grammar.",
                      "items": {
                        "type": "array",
                        "minItems": 2,
                        "maxItems": 2
                      }
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "value",
                    "parameters"
                  ],
                  "properties": {
                    "type": {
                      "const": "innerList"
                    },
                    "value": {
                      "type": "array",
                      "maxItems": 2048,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type",
                          "value",
                          "parameters"
                        ],
                        "properties": {
                          "type": {
                            "const": "item"
                          },
                          "value": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "value"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "integer"
                                  },
                                  "value": {
                                    "type": "integer",
                                    "minimum": -999999999999999,
                                    "maximum": 999999999999999
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "value"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "decimal"
                                  },
                                  "value": {
                                    "type": "number",
                                    "minimum": -999999999999.999,
                                    "maximum": 999999999999.999
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "value"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "string"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Structured-field string or token"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "value"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "token"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Structured-field string or token"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "value"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "byteSequence"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Canonical padded RFC 4648 Base64"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "value"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "boolean"
                                  },
                                  "value": {
                                    "type": "boolean"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "value"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "date"
                                  },
                                  "value": {
                                    "type": "integer",
                                    "minimum": -999999999999999,
                                    "maximum": 999999999999999
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "value"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "displayString"
                                  },
                                  "value": {
                                    "type": "string",
                                    "description": "Well-formed Unicode"
                                  }
                                }
                              }
                            ]
                          },
                          "parameters": {
                            "type": "array",
                            "maxItems": 2048,
                            "description": "Ordered, distinct [key, tagged bare value] pairs; native RFC key grammar.",
                            "items": {
                              "type": "array",
                              "minItems": 2,
                              "maxItems": 2
                            }
                          }
                        }
                      }
                    },
                    "parameters": {
                      "type": "array",
                      "maxItems": 2048,
                      "description": "Ordered, distinct [key, tagged bare value] pairs; native RFC key grammar.",
                      "items": {
                        "type": "array",
                        "minItems": 2,
                        "maxItems": 2
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      },
      {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind",
          "value"
        ],
        "properties": {
          "kind": {
            "const": "dictionary"
          },
          "value": {
            "type": "array",
            "maxItems": 2048,
            "description": "Ordered, distinct [key, item or innerList] pairs.",
            "items": {
              "type": "array",
              "minItems": 2,
              "maxItems": 2
            }
          }
        }
      }
    ]
  },
  "example": {
    "kind": "dictionary",
    "value": [
      [
        "u",
        {
          "parameters": [],
          "type": "item",
          "value": {
            "type": "integer",
            "value": 1
          }
        }
      ],
      [
        "i",
        {
          "parameters": [],
          "type": "item",
          "value": {
            "type": "boolean",
            "value": true
          }
        }
      ],
      [
        "label",
        {
          "parameters": [],
          "type": "item",
          "value": {
            "type": "displayString",
            "value": "café"
          }
        }
      ],
      [
        "expiry",
        {
          "parameters": [],
          "type": "item",
          "value": {
            "type": "date",
            "value": 1735689600
          }
        }
      ],
      [
        "ratio",
        {
          "parameters": [],
          "type": "item",
          "value": {
            "type": "decimal",
            "value": 1
          }
        }
      ]
    ]
  }
}

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.