语言
/v1/yaml/to-json
解析 YAML 字符串并返回等效的 JSON 表示形式。 处理嵌套结构、数组、锚点、别名和多行字符串。
The YAML string to convert.
curl -X POST https://api.botoi.com/v1/yaml/to-json \ -H "Content-Type: application/json" \ -d '{"yaml":"name: botoi\nversion: 2.1.0\nfeatures:\n - hashing\n - uuid"}'
将 Kubernetes YAML 清单转换为 JSON,以进行编程操作、验证或使用 --output=json 馈送到 kubectl 中。
迁移到需要 JSON 输入的工具时,将 GitHub Actions 或 CircleCI YAML 配置转换为 JSON。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.