Enhancement: Add JSON support to check

Restic `check` now also supports the `--json` option and gives all
statistics in JSON format.

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