let of_json_exn json : T.t = match versioned_of_yojson T.of_yojson json with | `Ok (V0 t) -> t | `Error str -> failwith (fmt "deserialization error: %s" str)