{"uid":"cap_jg_Qrw8JTV28_uKXAl_Dt","slug":"boring-api-convert-json-to-yaml-ee2d0de0","name":"boring-api · convert: JSON to YAML","description":"Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.","url":"https://convert.boring-api.com/json-to-yaml","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"content":{"type":"string"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_S2T3iyokjIaWE6IOa3UkI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a JSON string into YAML format using pure-JS or backend conversion libraries","exampleAgentPrompt":"Can you convert this JSON into YAML for me: {\"name\": \"my-service\", \"replicas\": 3, \"image\": \"nginx:latest\"}?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the YAML-formatted equivalent of the input JSON string, suitable for use in config files, CI/CD pipelines, Kubernetes manifests, or any YAML-consuming system.","failureModes":["Invalid or malformed JSON in 'content' field returns an error response","Empty content field may return an error or empty YAML","Payment not provided or declined results in HTTP 402 with x402 payment challenge","Network timeout or upstream service error returns 5xx response"],"whenToPreferThis":"Use this endpoint when you need a reliable, API-accessible JSON-to-YAML conversion without spinning up local tooling, especially in automated workflows, CI/CD pipelines, or agent tasks where transforming config files or data payloads is required on-demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:33.188Z","isFirstParty":false}