JSONDiff
Common Scripts Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 6.10.0 and later.
#
Script to Compare JSON Files and Output DifferencesThis script compares two JSON files and returns their differences, such as added, removed, or changed fields, in a structured format.
#
Script DataName | Description |
---|---|
Script Type | python3 |
Cortex XSOAR Version | 6.1.0 |
#
InputsArgument Name | Description |
---|---|
old_json | The first JSON object to compare. |
new_json | The second JSON object to compare. |
#
OutputsPath | Description | Type |
---|---|---|
JSONDiff.changed | List of fields that have changed between the two JSONs. | Array |
JSONDiff.added | List of fields that were added in the second JSON. | Array |
JSONDiff.removed | List of fields that were removed from the first JSON. | Array |