{"uid":"cap_KTsemAtSTiy8mASjZoJzV","slug":"x402-deployer-x402-deployer-workers-dev-6b173c0f","name":"JSON ↔ YAML Converter (x402-deployer)","description":"JSON to YAML and YAML to JSON converter / format transcoder / config-file translator / Helm values prepper / Kubernetes manifest converter / GitHub Actions workflow YAML helper / round-trip parser. Auto-detects input format from the first non-whitespace byte ('{'/'[' = JSON, otherwise YAML), parses, and re-serialises in the requested target format. Pretty-print and indent are configurable. Pure parse — no upstream API call, deterministic output.","url":"https://x402-deployer.x402-deployer.workers.dev/json-yaml","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["input"],"properties":{"to":{"enum":["json","yaml","auto"],"type":"string","description":"Target format. 'auto' converts to the opposite of the detected input. Default 'auto'."},"input":{"type":"string","description":"JSON or YAML source text. Format is auto-detected when 'to' is 'auto' or omitted."},"indent":{"type":"number","description":"Indent width in spaces (1-8). Default 2."},"pretty":{"type":"boolean","description":"Pretty-print JSON output (2-space indent by default). Ignored when target is YAML. Default true."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"output":{"type":"string"},"parsed":{"type":"object","properties":{"age":{"type":"integer"},"name":{"type":"string"}}},"target":{"type":"string"},"output_chars":{"type":"integer"},"detected_format":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":"{\"name\":\"test-app\",\"version\":\"1.0.0\",\"replicas\":2}","indentation":2,"prettyPrint":true,"targetFormat":"yaml"},"response":{"output":"name: test-app\nversion: 1.0.0\nreplicas: 2\n","parsed":{"name":"test-app","version":"1.0.0","replicas":2},"target":"yaml","output_chars":42,"detected_format":"json"}},"exampleRequest":{"input":"{\"name\":\"test-app\",\"version\":\"1.0.0\",\"replicas\":2}","indentation":2,"prettyPrint":true,"targetFormat":"yaml"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ob2RKudKm7ifg1OkqR9RQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Auto-detects and converts between JSON and YAML formats with configurable pretty-print and indentation, requiring no external API calls.","exampleAgentPrompt":"Convert this JSON config to YAML with 2-space indentation: {\"name\":\"my-app\",\"replicas\":3,\"image\":\"nginx:latest\"}","exampleUseCases":null,"resultDescription":"The serialized output in the requested target format (JSON or YAML), pretty-printed and indented as configured, with no side effects or external calls.","failureModes":["Invalid JSON or YAML input returns a parse error","Unrecognized target format returns a bad request error","Empty body returns an error indicating no input was provided","Malformed indentation parameter may fall back to default"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, no-dependency JSON↔YAML conversion with no external API calls — ideal for config file translation, Helm values prep, Kubernetes manifest conversion, or GitHub Actions YAML workflows where round-trip fidelity and zero latency matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:34:12.519Z","isFirstParty":false}