POST

Parse YAML string to JSON. Uses js-yaml

/v1/yaml-json

Conversions · js-yaml

Request → Response

Examples from schemas.json.

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

{
  "yaml": "example"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Parse YAML string to JSON. Uses js-yaml.

Request schema

Body: JSON · application/json

FieldTypeDescription
yamlstringrequired
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/yaml-json \
  -H "Content-Type: application/json" \
  -d '{
  "yaml": "example"
}'

402 payment flow omitted — see Integrations for settlement.