JsonToTable
This Script is part of the Filters And Transformers Pack.#
Supported versions
Supported Cortex XSOAR versions: 5.5.0 and later.
Accepts a json object and returns a markdown.
Script Data#
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | transformer, entirelist, general |
| Cortex XSOAR Version | 5.5.0 |
Inputs#
| Argument Name | Description |
|---|---|
| value | The json to transform to a markdown table. |
| title | The markdown title. |
| headers | A comma-separated list of table header values. Default will include all available table headers. |
| is_auto_json_transform | Try to auto json transform. |
| json_transform_properties | A json to transform the value to strings. The syntax is: `{"header_key": {"keys": [<item1>, ...], "is_nested": true/false}}` |
| url_keys | Comma-separated list of keys in the given JSON table that should be turned into a clickable URL. |
Outputs#
There are no outputs for this script.
Script Examples#
Example command#
Context Example#
Human Readable Output#
name value name1 val1 name2 val2
Example command#
Context Example#
Human Readable Output#
name name1 name2
Example command#
Context Example#
Human Readable Output#
name value
first: a
second: b
not_important: noval1
first: c
second: d
not_important: noval2
Example command#
Context Example#
Human Readable Output#
name value
first: a
second: bval1
first: c
second: dval2
Example command#
Context Example#
Human Readable Output#
name value first:
a: val
second: bval1 first:
a: val2
second: dval2