Ymal数组表示法

更新时间:2017-04-26
company:
  - name: ThoughtWorks
    scale: 3000-5000
  - name: 思特沃克
    scale: 3000-5000

等价于:

{
  "company": [
    {
      "name": "ThoughtWorks",
      "scale": "3000-5000"
    },
    {
      "name": "思特沃克",
      "scale": "3000-5000"
    }
  ]
}

Posted by Yuan Shenjian • April 24th, 2017 @ ThoughtWorks®

版权声明:自由转载•非商用•非衍生•保持署名 | Creative Commons BY-NC-ND 3.0

原文链接:http://sjyuan.cc/troubleshoots/yaml
支持原创