Compare Arrays

Compare JSON arrays using intelligent key mapping to find common elements and differences.

Preview (first 10 items):
[
  {
    "userId": "u1",
    "jobId": {
      "$oid": "j1"
    },
    "status": "active"
  },
  {
    "userId": "u2",
    "jobId": {
      "$oid": "j2"
    },
    "status": "inactive"
  }
]
Preview (first 10 items):
[
  {
    "userId": "u1",
    "job": "j1",
    "active": true
  },
  {
    "userId": "u3",
    "job": "j3",
    "active": false
  }
]

Key Mappings

Array 1 Key
Array 2 Key
Action

Comparison Logic: Objects will be considered matching when ALL selected key pairs have equal values.

How It Works

This tool compares two JSON arrays using intelligent key mapping to identify relationships between objects.

Common
Items in both arrays
Array 1 - Array 2
Only in first array
Array 2 - Array 1
Only in second array
Key Mapping Example
Array 1: [{"userId": "u1", "jobId": {"$oid": "j1"}}]
Array 2: [{"userId": "u1", "job": "j1"}]
Key Mappings:
  userId → userId
  jobId.$oid → job
Result: Objects match when both conditions are true

The tool automatically detects keys from sample data, supports nested objects, and provides tabbed results with export options.