totally under that generics can make this difficult… Could be more helpful, if we want something like this, to send back the proto message (for protos) and just use `Map<String, Object>` for json.