I have array objects, and I want to remove some inner objects if the key is not match.
Input:
"configuration" : {
"11111-2222-3333-444--5555" : {
"home1" :
{
"tel" : "125",
"address" : true,
}
},
"2222-3333-44444-5555--66666" : {
"home2" :
{
"tel" : "125",
"address" : true,
}
}
}
I have a match string 11111-2222-3333-444--5555
The expected out:
"configuration" : {
"11111-2222-3333-444--5555" : {
"home1" :
{
"tel" : "125",
"address" : true
}
}
}