is there a way to loop through two sets of JSON arrays and identify the additional array items from File 2 compared to File 1? Example below:
File 1:
{
"Cars": [{
"type": "Ford"
},
{
"type": "BMW"
}
]
}
File: 2
{
"Cars": [{
"type": "Ford"
},
{
"type": "BMW"
},
{
"type": "Vauxhall"
},
{
"type": "Fiat"
}
]
}
Desired outcome:
The additons are:
{
"Cars": [{
"type": "Vauxhall"
},
{
"type": "Fiat"
}
]
}
I am struggling to get into the array in Python. Any help much appreciated.