JSON Command
As the name indicates, this command is used to export data into a JSON file. You can choose to export data to a JSON file from the export section at any time, providing a convenient way to store and share your data in a structured format.
You can add this command from the command list which is shown in the below screenshot:
In order to make the optimum use of the ‘JSON’ command, we can configure the options as shown in the below screenshot, as per the user requirement.
Command Configuration
The configuration screen for the URL command has two tabs viz. Options and Text. Use the ‘Options’ tab to set the command name and other command properties. Use the Text tab to navigate to the text of the agent where the command part is present.
Command Properties
On the Options tab of the command, we have two options:
General Settings
JSON
General Settings > General Command Settings
The ‘General command settings’ section is designed for user customization to give the command a desired name, comment to describe in brief about the usability or requirement for the command and the disabled option to not execute this command at all.
Command name: This property specifies the name of the command.
Comments: Provides a field for entering metadata or a brief description regarding the command. These annotations are used internally to provide context for developers or team members. Comments are not part of the exported data and are only used for documentation purposes within the configuration.
Disabled: This checkbox allows the user to disable the command. When checked, the command is ignored during execution. By default, it is unchecked.
JSON → JSON export settings
Timestamp: If this option is enabled, a timestamp will be added to the exported JSON file. By default, this setting is unchecked, but you can enable it at any time if you wish to include the timestamp.
Retain: The "Retain" option allows you to keep the file, ensuring that it will not be automatically deleted. By default, this option is set to unchecked, meaning that unless you actively choose to enable it.