Fix JSON output for non-ok checks.