2017-10-10 71 views
0

例如:速度:如何声明里面阵列阵列中的YAML文件

{floor: '1', functionId: BDEB1, 
baseRates: { baseRateAgreementLevel: baseRateAgreementLevel,name: LIBOR GBP 1 Month, value: 0.1} 
} 

以上价格是一个数组,baserate是另一个数组是速度阵列

收到错误“无法创建属性”里面同时在snake yaml文件中声明数组。

+0

缩进在这里是相关的,所以我不能编辑它。在每行的左边放置4个空格,以表示标记中的一行代码。 – Neil

回答

0

我猜你的意思是写:

rate: 
    floor: '1' 
    functionId: BDEB1 
    baseRates: 
     baseRateAgreementLevel: baseRateAgreementLevel 
     name: LIBOR GBP 1 Month 
     value: 0.1 

这是你想要的吗?看看here json等效表示。

+0

您是否可以在您的答案中添加生成的json表示形式,因为该链接可能会死一段时间 – UrbanEsc