给定以下JSON struct
{
"data": [
{
"id": "000000000014444A",
"teams": [
"000000000011AE74"
]
},
{
"id": "000000000014434B",
"teams": [
"000000000011AE74",
"00000000001583CE",
"000000000010B4D7"
]
}
]
}
我如何使用JQ将数据 struct 化为
[
{
"id": "000000000014444A",
"team": "000000000011AE74"
},
{
"id": "000000000014434B",
"team": "000000000011AE74"
},
{
"id": "000000000014434B",
"team": "00000000001583CE"
},
{
"id": "000000000014434B",
"team": "000000000010B4D7"
}
]