VerifyJSON
Common Scripts Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 5.5.0 and later.
Verifies if the supplied JSON string is valid and optionally verifies against a provided schema. The script utilizes Powershell's Test-JSON cmdlet.
#
Script DataName | Description |
---|---|
Script Type | powershell |
Tags | JSON, Utility |
Cortex XSOAR Version | 5.5.0 |
#
InputsArgument Name | Description |
---|---|
json | JSON string to verfiy. |
schema | Optional schema against which to validate the JSON input. |
#
OutputsPath | Description | Type |
---|---|---|
VerifyJSON.Result | Whether the passed JSON was verified. | boolean |
#
Script Example!VerifyJSON json={"alert_id":"695b3238-05d6-4934-86f5-9fff3201aeb0"}
#
Context Example#
Human Readable OutputVerify JSON completed successfully