# JSON URL Diff Tool

**Use case:** 

Fetch two public JSON files by URL and compare them into a structured summary of added, removed, and changed fields.

## Input

```json
{
  "jsonA": "{\"name\":\"Alice\",\"age\":30,\"role\":\"admin\",\"tags\":[\"a\",\"b\"]}",
  "urlA": "https://raw.githubusercontent.com/apify/apify-sdk-js/master/package.json",
  "jsonB": "{\"name\":\"Alice\",\"age\":31,\"role\":\"superadmin\",\"tags\":[\"a\",\"b\",\"c\"]}",
  "urlB": "https://raw.githubusercontent.com/apify/crawlee/master/package.json",
  "outputMode": "summary",
  "ignoreArrayOrder": true,
  "maxDepth": 4
}
```

## Output

```json
{
  "changeType": {
    "label": "Change",
    "format": "text"
  },
  "path": {
    "label": "Path",
    "format": "text"
  },
  "valueA": {
    "label": "Value A",
    "format": "text"
  },
  "valueB": {
    "label": "Value B",
    "format": "text"
  },
  "typeA": {
    "label": "Type A",
    "format": "text"
  },
  "typeB": {
    "label": "Type B",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [JSON Diff Tool](https://apify.com/automation-lab/json-diff-tool) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/json-diff-tool) to learn more, explore other use cases, and run it yourself.