JSON 和 YAML 一键互转,用完整的 YAML 解析器(js-yaml)在本地转换——带注释会丢、锚点会展开,但结构与数据类型严格正确,拿去改 docker-compose、K8s、GitHub Actions 配置都放心。Convert JSON and YAML in one click with a full YAML parser (js-yaml) running locally. Comments are dropped and anchors expanded, but structure and data types stay strictly correct — safe for docker-compose, Kubernetes and CI configs.
提示:YAML 对缩进和特殊字符很敏感(比如含冒号、# 的字符串需要引号),本工具用成熟解析库处理这些边界情况;转换后请特别核对日期、八进制样式数字等容易被 YAML 特殊解释的值。Tip: YAML is sensitive to indentation and special characters (strings containing colons or # need quotes). This tool uses a mature parser for those edge cases; after converting, double-check dates and octal-looking numbers, which YAML interprets specially.