{"uid":"cap_bgwK3C5vXfIRG0awXYhtS","slug":"boring-api-convert-yaml-to-json-7da2f1b3","name":"boring-api · convert: YAML to JSON","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/yaml-to-json","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_iT2XTXK2YhNfraUzENazd","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 YAML-formatted text content into JSON format using pure-JS or Pandoc-backed conversion libraries.","exampleAgentPrompt":"Can you convert this YAML to JSON for me? Here's the content: 'name: Alice\\nage: 30\\nroles:\\n  - admin\\n  - user'","exampleUseCases":[{"title":"Parse Kubernetes manifests for CI/CD","prompt":"I need to convert this Kubernetes deployment YAML into JSON so I can validate it against our schema before pushing to the cluster. Here's the manifest:\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: web-app\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: web"},{"title":"Transform configuration files for migration","prompt":"We're switching from YAML config files to JSON. Can you convert our entire application config to JSON? Here's what we have:\nserver:\n  host: localhost\n  port: 8080\ndatabase:\n  type: postgres\n  credentials:\n    user: admin"},{"title":"Extract and normalize API specifications","prompt":"I'm building a tool that needs to work with OpenAPI specs. Can you convert this YAML API definition to JSON format so I can parse it programmatically?\ninfo:\n  title: User API\n  version: 1.0.0\npaths:\n  /users:\n    get:\n      summary: List all users"}],"resultDescription":"A JSON object containing the converted result. The YAML input is parsed and returned as a JSON-structured response, with text output delivered as a JSON field value.","failureModes":["Invalid or malformed YAML input returns an error response","Empty content field may return an error or empty object","Deeply nested or complex YAML anchors may fail to parse correctly","Payment failure (402) if x402 payment is not processed before the call"],"whenToPreferThis":"Choose this endpoint when you need a reliable, hosted, pay-per-call YAML-to-JSON conversion without setting up your own parsing infrastructure. Ideal for agents that occasionally need to convert YAML config snippets, Kubernetes manifests, or API specs to JSON on the fly, without managing dependencies like js-yaml or Pandoc locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:42:24.130Z","isFirstParty":false}