Enhancement: Add JSON support to `check` command

The `check` command now supports the `--json` option to output all statistics in 
JSON format.

https://github.com/restic/restic/issues/1378
https://github.com/restic/restic/pull/5194
