Skip to content

JSON Output

Add --output json to any read command to get JSON-wrapped output.

Terminal window
flowctl --instance https://myco.service-now.com \
--sys-id <id> --output json

The JSON envelope includes the flow metadata alongside the formatted output. Useful for piping into jq, feeding into CI scripts, or building tooling on top of flowctl.

Combine --output json with any --format:

Terminal window
# JSON with text output
flowctl --sys-id <id> --output json --format text
# JSON with YAML output
flowctl --sys-id <id> --output json --format yaml
# JSON with tree diagram
flowctl --sys-id <id> --output json --format tree

Extract the flow name:

Terminal window
flowctl --sys-id <id> --output json | jq -r '.name'

Check flow status:

Terminal window
flowctl --sys-id <id> --output json | jq -r '.status'