Имея json как
[
{
"parent": "x",
"children": ["a", "b"]
},
{
"parent": "y",
"children": ["c", "d", "e"]
}
]
как преобразовать его с помощью jq в массив элементов "[parent, child_order_number, child]", таких как
[
["x", 0, "a"],
["x", 1, "b"],
["y", 0, "c"],
["y", 1, "d"],
["y", 2, "e"]
]