有9份数据,用红绿蓝黄紫青等9种颜色,每一份数据包含10到16的不定数量的数组,每个数组的长度都是31,请使用一个json数组描述这9份数据。
时间: 2024-01-22 10:20:01 浏览: 55
json-of-color-:颜色的json
以下是一个示例JSON数组,描述了9份数据:
```json
[
{
"color": "red",
"data": [
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
[6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
[11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
[16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
[21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],
[26, 27, 28, 29, 30, 31],
[31]
]
},
{
"color": "green",
"data": [
[1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31],
[2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30]
]
},
{
"color": "blue",
"data": [
[1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31],
[2, 5, 8, 11, 14, 17, 20, 23, 26, 29],
[3, 6, 9, 12, 15, 18, 21, 24, 27, 30]
]
},
{
"color": "yellow",
"data": [
[1, 5, 9, 13, 17, 21, 25, 29, 31],
[2, 6, 10, 14, 18, 22, 26, 30],
[3, 7, 11, 15, 19, 23, 27],
[4, 8, 12, 16, 20, 24, 28]
]
},
{
"color": "purple",
"data": [
[1, 8, 15, 22, 29],
[2, 9, 16, 23, 30],
[3, 10, 17, 24, 31],
[4, 11, 18, 25],
[5, 12, 19, 26],
[6, 13, 20, 27],
[7, 14, 21, 28]
]
},
{
"color": "cyan",
"data": [
[1, 6, 11, 16, 21, 26, 31],
[2, 7, 12, 17, 22, 27],
[3, 8, 13, 18, 23, 28],
[4, 9, 14, 19, 24, 29],
[5, 10, 15, 20, 25, 30]
]
},
{
"color": "magenta",
"data": [
[1, 7, 13, 19, 25, 31],
[2, 8, 14, 20, 26],
[3, 9, 15, 21, 27],
[4, 10, 16, 22, 28],
[5, 11, 17, 23, 29],
[6, 12, 18, 24, 30]
]
},
{
"color": "orange",
"data": [
[1, 9, 17, 25],
[2, 10, 18, 26],
[3, 11, 19, 27],
[4, 12, 20, 28],
[5, 13, 21, 29],
[6, 14, 22, 30],
[7, 15, 23, 31],
[8, 16, 24]
]
},
{
"color": "pink",
"data": [
[1, 10, 19, 28],
[2, 11, 20, 29],
[3, 12, 21, 30],
[4, 13, 22, 31],
[5, 14, 23],
[6, 15, 24],
[7, 16, 25],
[8, 17, 26],
[9, 18, 27]
]
}
]
```
在这个示例中,每个数据包含一个颜色和一个数组列表,其中每个数组都表示一组数据。
阅读全文