Here is an example structure of the JSON data:
{ "array_listing_1" : [
{"name":"John","age":"18","group":"user","country":"UK","hobby":"series","sport":"football"},
{"name":"Ted","age":"20","group":"user","country":"US"}, ...]}
{ "array_listing_2" : [
{"name":"John","age":"18","group":"admin","country":"UK","hobby":"series","sport":"football"},
{"name":"Ted","age":"20","group":"user","country":"US", sport:"tennis"},
{"name":"David","age":"20","group":"user", sport:"tennis"},...]}
{ "array_listing_3" : [
{"name":"John","age":"18","group":"admin","country":"UK","hobby":"series","sport":"football"},
{"name":"David","age":"20","group":"user", sport:"tennis"},...]}
I am tasked with comparing two JSON Array structures containing objects. The goal is to compare objects with matching names in the two arrays and identify any differences present. For instance, when comparing array_listing_1 and array_listing_2, I aim to detect new objects added to array_listing_2. Additionally, any changes in values such as John's group transitioning from user to admin need to be identified. In the case of comparing array_listing_2 and array_listing_3, the deletion of the user Ted from array_listing_3 should be detected.