我目前有一个JS数组,想将其转换为YAML文件。我尝试查找了一些资料,知道如何创建对象和数组,但不知道如何嵌套它们。
cartParams: [
{
title: Leg type,
options: [
Round,
Square
]
},
{
title: Leg width / diameter,
options: [
1.00 inches,
1.25 inches,
1.50 inches,
1.75 inches,
2.00 inches
]
}
]