Answer the question
In order to leave comments, you need to log in
Jackson2. How to get a list of loaded types?
Background: Made simple type typing with Jackson2
TypeResolverBuilder<?> typeBuilder = new ObjectMapper.DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping.JAVA_LANG_OBJECT);
typeBuilder = typeBuilder.init(JsonTypeInfo.Id.NAME, null);
typeBuilder = typeBuilder.inclusion(JsonTypeInfo.As.PROPERTY);
typeBuilder = typeBuilder.typeProperty("@type");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question