{"uid":"cap_xDiT2kkadkn9UOPiJJZW7","slug":"agent402-tools-yaml-to-json-converter-5d8ed6d0","name":"agent402.tools YAML to JSON Converter","description":"Parse YAML into JSON (safe schema - no code execution).","url":"https://agent402.tools/api/yaml-to-json","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"yaml":{"type":"string","description":"YAML text (max 100KB)"}}},"responseSchema":{"type":"json","example":{"json":{"name":"Ada","tags":["eng"]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bKvJ5soswHm2db3kL_EUg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a YAML string to its JSON equivalent using safe schema parsing with no code execution.","exampleAgentPrompt":"Can you convert this YAML to JSON for me: 'name: Alice\\nage: 30\\nroles:\\n  - admin\\n  - editor'?","exampleUseCases":null,"resultDescription":"A JSON representation of the parsed YAML input, with keys and values mapped to equivalent JSON types. No code is executed during parsing (safe schema only).","failureModes":["Invalid or malformed YAML returns a parse error","Input exceeding 100KB may be rejected","YAML with unsafe schema constructs (e.g. custom tags or executable nodes) will be rejected due to safe-schema restriction","Empty or missing 'yaml' field returns a validation error"],"whenToPreferThis":"Use this endpoint when you need a safe, deterministic conversion of YAML text to JSON without any risk of code execution side effects. Ideal for processing configuration files, CI/CD pipelines, or user-supplied YAML in untrusted contexts where safe parsing is a requirement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.138Z","isFirstParty":false}