Added integration tests for the --out-indent flag for JSON output
Restore negative integer check for --out-indent flag

Fixes #16673.
Added documentation about the --out-indent flag
Merge pull request #16700 from whiteinge/json-output-indent

Fix --out-indent for the JSON outputter