Getting bot response messages in JSON format

You can run commands and get bot response messages in JSON format.

About this task

With bot response messages in JSON format, you can see the data format and attributes that are used to render the bot response. Your can also use JSONPath to pick out some values and pass them to your own LIC links as request parameters. For more information, see Configuring LIC links.

Procedure

To get the response messages in JSON format, you run commands in one of the following ways. For more information about IBM Z ChatOps commands, see IBM Z ChatOps Commands.
@bnz command --json-format
@bnz command --jf
For example, to show the status of automation domain, you can use command @bnz ad, and you will see the following response message.
Repsonse message of @bnz ad
If you want to get the response message in the JSON format, you can run command @bnz ad --jf or @bnz ad --json-format.
Response message of @bnz ad --jf