Let's say I have the following two data sets:
{ "food": {
"apple": {
"color": "red"
},
"orange": {
"color": "orange"
},
"potato": {
"color": "brown"
},
"tomato": {
"color": "red"
}
}
}
and
{ "fruits": {
"apple": {
"isFruit": "yes"
},
"orange": {
"isFruit": "yes"
},
"tomato": {
"isFruit": "yes"
}
}
}
Is there a way to combine these two sets so that they end up looking like:
{ "food": {
"apple": {
"color": "red",
"isFruit": "yes"
},
"orange": {
"color": "orange",
"isFruit": "yes"
},
"potato": {
"color": "brown"
}
"tomato": {
"color": "red",
"isFruit": "yes"
}
}
}
I assume there must be some way to parse these two sets and combine them but I haven't been able to figure out how.