我有一个包含嵌套数组的json文件,如[[0.5,0.25,0.75],[0.5,0.5,0.5],[0.5,0.5,0.5]],但当我试图索引json文件时它得到了平坦的结果,如[0.5,0.25,0.75,0.5,0.5,0.5,0.5,0.5,0.5]。有谁能告诉我如何处理?
答案 0 :(得分:0)
您可以将数组嵌套在对象中,如下所示:
coords: {
{[0.5, 0.25, 0.75]},
{[0.5, 0.5, 0.5]},
{[0.5, 0.5, 0.5]}
}
coords 必须是多值字段。