I have the below data structure in JSON, which is a dictionary where each element is a list of dictionaries.
{
"383e36d1-32e5-4705-8271-fa5e9e2ad538": [
{
"label": "blah",
"group_label": "group_a",
"id": "id_blah"
},
{
"label": "bloh",
"group_label": "group_b",
"id": "id_bloh"
}
],
"38b8293c-00c4-4bcf-91eb-440da656c653": [
{
"label": "bim",
"group_label": "group_c",
"id": "id_bim"
},
{
"label": "bam",
"group_label": "group_d",
"id": "id_bam"
},
...
}
and I need a JMESPath query expression to turn it into:
{
"383e36d1-32e5-4705-8271-fa5e9e2ad538": [
{
"label": "blah",
"group_label": "group_a",
},
{
"label": "bloh",
"group_label": "group_b",
}
],
"38b8293c-00c4-4bcf-91eb-440da656c653": [
{
"label": "bim",
"group_label": "group_c",
},
{
"label": "bam",
"group_label": "group_d",
},
...
}
Basically keeping the same structure but removing the id
key from every entry