Validating the guard condition in JsonCoder#decode