Skip to content

Instance Property

jsonOutput

When true, the command’s result is being emitted as machine-readable JSON on stdout.

let jsonOutput: Bool

Discussion

Set by --output json at the CLI layer. Long-running build helpers (streamingGradle() / streamingXcodeBuild()) must not stream live output to stdout in this mode — doing so would interleave build progress with the JSON result and corrupt it. They fall back to capturing instead so stdout stays pure JSON.