{"uid":"cap_V-ue51Y5eQYCAOuOqDF-m","slug":"api-x402node-dev-fe5a2b12","name":"JSON ↔ YAML Bidirectional Converter","description":"JSON to YAML, YAML to JSON, yaml parser, json to yaml converter, config file converter, yaml config, json string to yaml, convert yaml to json, yml json. Bidirectional convert between JSON and YAML with pretty-print. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/convert/json-yaml","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["content"],"properties":{"from":{"type":"string","description":"Source format (optional)"},"content":{"type":"string","description":"Content body (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0022","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.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZAtbB3BmAiWOPwNwUoVhW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between JSON and YAML formats bidirectionally with pretty-printing","exampleAgentPrompt":"Convert this JSON object to YAML for me: {\"name\": \"my-service\", \"port\": 8080, \"debug\": true, \"tags\": [\"web\", \"api\"]}","exampleUseCases":null,"resultDescription":"Returns an object with a 'result' field containing the converted string (YAML or JSON), plus 'from' and 'to' fields indicating the source and target format. The output is pretty-printed for readability.","failureModes":["Invalid JSON input returns an error (malformed JSON, trailing commas, unquoted keys)","Invalid YAML input returns a parse error (bad indentation, illegal characters)","Empty or null body may return a 400-level error","Ambiguous input format may cause incorrect format detection"],"whenToPreferThis":"Use this endpoint when you need a quick, stateless bidirectional conversion between JSON and YAML without spinning up a local parser — ideal for config file transformations, CI/CD pipelines, or when an AI agent needs to reformat structured data on the fly. Prefer this over a CSV or XML converter when the data is specifically JSON/YAML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:46:40.215Z","isFirstParty":false}