2017-10-10 30 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