{"uid":"cap_DlSyqEoDmgNTeZZ9dz6_C","slug":"yaml-to-json-converter-a9404f4d","name":"YAML to JSON Converter","description":"YAML to JSON converter for block-style YAML (nested maps, lists, scalars with type inference, quoted strings, comments, literal | and folded > blocks, inline JSON arrays/objects). Returns the parsed JSON and the top-level keys. Ideal for reading CI configs, Kubernetes manifests and docker-compose files. Anchors/aliases and multi-document files are not supported. $0.01 per conversion.","url":"https://intel.rallylive.ca/dev/yaml-to-json","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_miEQBNww589y78yify6Tx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts block-style YAML text to JSON, returning the parsed JSON object and top-level keys, with support for nested maps, lists, scalars, quoted strings, comments, and literal/folded block scalars.","exampleAgentPrompt":"Can you convert this Kubernetes deployment manifest YAML into JSON for me so I can see the top-level keys and the parsed structure?","exampleUseCases":[{"title":"Parse Kubernetes manifest for inspection","prompt":"I have a Kubernetes deployment YAML file — can you convert it to JSON so I can inspect the nested spec and container config fields more easily?"},{"title":"Read docker-compose as structured JSON","prompt":"Take this docker-compose.yml content and convert it to JSON so I can programmatically work with the services and volumes sections."},{"title":"Extract top-level keys from CI config","prompt":"Here's my GitHub Actions workflow YAML — convert it to JSON and tell me what the top-level keys are so I can understand the file structure at a glance."}],"resultDescription":"Returns the fully parsed JSON representation of the input YAML along with a list of top-level keys found in the document. Supports nested maps, lists, scalar types with type inference, quoted strings, comments (stripped), and literal (|) and folded (>) block scalars. Does not support YAML anchors/aliases or multi-document files.","failureModes":["YAML with anchors or aliases will fail as they are not supported","Multi-document YAML files (using --- separators) are not supported","Malformed or invalid YAML syntax will produce a parse error","Inline JSON within YAML may produce unexpected results in edge cases","Empty or whitespace-only input may return an empty or null result"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost ($0.01) server-side conversion of block-style YAML — especially CI configs, Kubernetes manifests, or docker-compose files — into JSON with top-level key extraction. Prefer this over client-side parsing when you want a stateless, network-accessible conversion without managing a YAML library. Not suitable for YAML with anchors/aliases or multi-document streams.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:19.290Z","isFirstParty":false}