How can I check if any dctionary in variants.variant.*.specification.list-by-lang.attribute list contains “@id”: “delka_2”
And if yes create list-by-lang.attr_sel.delka = ANO
{
“@id”: “A_BOARD_A1_COMPLETE_SET_ENTRANCE”,
“variants”: {
“variant”: [
{
“@ean”: 8596052146251,
“by-lang”: {
“data”: {
“name”: “A-board A1 Complete Set Bread English”,
“@lang”: “eu”
}
},
“specification”: {
“list-by-lang”: {
“attribute”: [
{
“#”: “1PCSETUP”,
“@id”: “balici_jednotka”
},
{
“#”: “20”,
“@id”: “balici_jednotka_bks_3”
},
{
“#”: “744.0000”,
“@id”: “delka”
},
{
“#”: “1196.0000”,
“@id”: “delka_2”
}
]
}
}
}
]
}
}