Skip to main content

GenerateRandomJSON

This Script is part of the Community Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

Generate a list of random dictionaries, using Faker Python library. For more information, please visit https://faker.readthedocs.io

Script Data#


NameDescription
Script Typepython3

Inputs#


Argument NameDescription
list_sizeSize of the list of dictionaries to generate.
faker_providersComma separated list of Faker provider(s) to generate data from (Only relevant if category input is set to Other). For the list of providers, please visit https://faker.readthedocs.io/en/master/providers.html
categoryFaker providers grouped into categories (e.g. IT, Finance, Person, etc) for the creation of the dictionary. If Random is selected, faker providers are chosen at random from the entire set of providers.
dict_sizeNumber of key-value pairs contained on each dictionary if Random is selected as category, otherwise this number is chosen from a pre-defined list.

Outputs#


There are no outputs for this script.