GoingToolJSON ⇄ YAML
输入 JSON · 209 个字符
service: api
image: goingtool/api:1.4.0
replicas: 3
debug: false
ports:
  - 80
  - 443
env:
  NODE_ENV: production
  FEATURE_FLAG: "on"
  ZIP_CODE: "01234"

yes、on、0123 等字符串会加上引号,确保 YAML 1.1 和 1.2 解析器读取结果一致。