JSON Output
Add --output json to any read command to get JSON-wrapped output.
flowctl --instance https://myco.service-now.com \ --sys-id <id> --output jsonThe 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.
With Other Formats
Section titled “With Other Formats”Combine --output json with any --format:
# JSON with text outputflowctl --sys-id <id> --output json --format text
# JSON with YAML outputflowctl --sys-id <id> --output json --format yaml
# JSON with tree diagramflowctl --sys-id <id> --output json --format treeScripting Examples
Section titled “Scripting Examples”Extract the flow name:
flowctl --sys-id <id> --output json | jq -r '.name'Check flow status:
flowctl --sys-id <id> --output json | jq -r '.status'