PrettyPrint

Pretty-print data using Python's pprint library. This is useful for seeing the structure of incident and context data. Here's how to use it: !PrettyPrint value=${incident}.

python · Common Scripts

Source

from pprint import pformat

import demistomock as demisto


def main():
    value = demisto.args()["value"]
    demisto.results(pformat(value))


if __name__ in ["__builtin__", "builtins"]:
    main()

README

Pretty-print data using Python’s pprint library. This is useful for seeing the structure of incident and context data. Here’s how to use it:

!PrettyPrint value=${incident}

Script Data


Name Description
Script Type python3
Cortex XSOAR Version 5.0.0

Inputs


Argument Name Description
value The value to pretty-print.

Outputs


There are no outputs for this script.