POST

Convert JSON to XML string. Uses xml-js

/v1/json-xml

Conversions · xml-js

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/json-xml
Content-Type: application/json

{
  "json": {
    "hello": "world"
  }
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Convert JSON to XML string. Uses xml-js.

Request schema

Body: JSON · application/json

FieldTypeDescription
jsonstringrequired
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/json-xml \
  -H "Content-Type: application/json" \
  -d '{
  "json": {
    "hello": "world"
  }
}'

402 payment flow omitted — see Integrations for settlement.