{
"hoodie": {
"body": {
"default": {
"colors": {
"style": {
"solid": {
"colors": {
"body": "body"
}
}
}
}
},
"additional": {
"logo": {
"image": ""
},
"chest-pocket": {
"colors": {
"chest-pocket": "chest-pocket"
}
},
"tag": {
"image": ""
}
}
},
"sleeves": {
"default": {
"colors": {
"style": {
"solid": {
"colors": {
"sleeve": "sleeve"
}
}
}
}
},
"additional": {
"cuffs": {
"colors": {
"cuffs": "cuffs"
}
}
}
}
}
}
The format in which I needed is to extract the additional keys. As in this case, hoodie key contains body and sleeves as its key which in the additional contains its different keys corresponding to the additional key. I have given the Object that needs to be parsed and the data obtained after parsing.
{
"body": ["logo", "chest-pocket", "tag"],
"sleeves": ["cuffs"]
}
Anyone can please share the link it might help me to play with Objects. Thanks in advance.