qemu-img: add json output option to the check command