I am trying to convert a ProtoBuf to Map by using the below mentioned code.
Map map = objectMapper.convertValue(obj, Map.class);
Sample PB data causing this: id: "1" metadata { type: "UNIT" isValidated: false status { status: ACTIVE } }
I am getting the error java.lang.IllegalArgumentException: Direct self-reference leading to cycle (through reference chain: com.sample.samplePB["unknownFields"]->com.google.protobuf.UnknownFieldSet["defaultInstanceForType"])