561 Group Market
HTML to Parsed JSON Document Tree
HTML to Parsed JSON Document Tree
Parse HTML into ordered JSON document nodes using native HTML error recovery. Retain document mode, doctype IDs, element namespaces, attributes, text/comments and separate inert template content. Include original UTF-16 source spans; implied nodes have null spans. This is the parsed DOM carrier, not original lexical markup or browser rendering. Limits65536 input UTF-8 bytes,8192 nodes/attributes,depth64,1048576 result JSON bytes. No fetching or script execution.
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/html-to-json-tree
- Seller
- engineering
- Source-rights state
- not-declared
- Offer NI
- ni:///sha-256;Cgf-XMLhvm6eSoTMuSotZyIESv9iD-pp82RAoF1D_dU
- Claim cell
- ni:///sha-256;ZJ02kgks64Dcrga2V5fkHAKmLHFUDkogpJsw-0-_LQs
- Operation law
- ni:///sha-256;p9Lrxqmhvsi3goyTKYWVj5yNd-NrLSzohqh09sBA5Vk
- html
- html-to-json-tree
- data
- ni:///sha-256;Cgf-XMLhvm6eSoTMuSotZyIESv9iD-pp82RAoF1D_dU
- @red-cup-engineering/html-structural-projection-service
- 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": 1048576,
"bodySchema": {
"type": "object",
"required": [
"html"
],
"properties": {
"html": {
"type": "string",
"maxLength": 65536,
"description": "Maximum65536decoded UTF-8 bytes; full JSON escaping fits the request envelope."
}
},
"additionalProperties": false
}
}Seller-declared request example
{
"method": "POST",
"url": "https://market.561.group/v1/data/html-to-json-tree",
"headers": {
"accept": "application/json",
"content-type": "application/json"
},
"body": {
"html": "<!doctype html><p>A & B<svg><text>猫</text></svg><template><b>inert</b></template>"
}
}Unsigned request example (copy and run)
curl --include --request POST --header 'accept: application/json' --header 'content-type: application/json' --data-raw '{"html":"<!doctype html><p>A & B<svg><text>猫</text></svg><template><b>inert</b></template>"}' --url 'https://market.561.group/v1/data/html-to-json-tree'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": [
"document",
"sourceByteLength",
"offsetUnit"
],
"properties": {
"document": {
"type": "object",
"required": [
"kind",
"mode",
"children"
],
"properties": {
"kind": {
"const": "document"
},
"mode": {
"enum": [
"no-quirks",
"quirks",
"limited-quirks"
]
},
"children": {
"type": "array",
"items": {
"type": "object"
}
}
},
"description": "Native parsed ordered nodes, including implied elements, namespace/attribute metadata, doctype public/system IDs and separate template fragment content. Source offsets are null for implied nodes."
},
"sourceByteLength": {
"type": "integer",
"minimum": 0
},
"offsetUnit": {
"const": "UTF-16 code units"
}
}
},
"example": {
"document": {
"kind": "document",
"mode": "no-quirks",
"children": [
{
"kind": "doctype",
"name": "html",
"publicId": "",
"systemId": "",
"source": {
"start": 0,
"end": 15
}
},
{
"kind": "element",
"name": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"kind": "element",
"name": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"source": null
},
{
"kind": "element",
"name": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"kind": "element",
"name": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"kind": "text",
"value": "A & B",
"source": {
"start": 18,
"end": 27
}
},
{
"kind": "element",
"name": "svg",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"kind": "element",
"name": "text",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"kind": "text",
"value": "猫",
"source": {
"start": 38,
"end": 39
}
}
],
"source": {
"start": 32,
"end": 46
}
}
],
"source": {
"start": 27,
"end": 52
}
},
{
"kind": "element",
"name": "template",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"source": {
"start": 52,
"end": 85
},
"content": {
"kind": "fragment",
"children": [
{
"kind": "element",
"name": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"kind": "text",
"value": "inert",
"source": {
"start": 65,
"end": 70
}
}
],
"source": {
"start": 62,
"end": 74
}
}
]
}
}
],
"source": {
"start": 15,
"end": 85
}
}
],
"source": null
}
],
"source": null
}
]
},
"sourceByteLength": 87,
"offsetUnit": "UTF-16 code units"
}
}How to buy with x402
- Review the request before sending it. It may still reach a service. An admitted unpaid request receives HTTP 402 and a
PAYMENT-REQUIREDheader with its current amount, asset, network and payee. - Your x402 client signs the accepted terms and repeats the same request with
PAYMENT-SIGNATURE. - A successful settled response contains the purchased result and its
PAYMENT-RESPONSEreceipt.
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.