AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod(); if (valueMethod != null) {
AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod(); if (valueMethod != null) {
AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod(); if (valueMethod != null) {
AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod(); if (valueMethod != null) {
AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod(); if (valueMethod != null) {
/** * Method that will try to construct a {@link BeanSerializer} for * given class. Returns null if no properties are found. */ public JsonSerializer<Object> findBeanSerializer(Class<?> type, SerializationConfig config, BasicBeanDescription beanDesc) { // First things first: we know some types are not beans... if (!isPotentialBeanType(type)) { return null; } /* [JACKSON-80]: Should support @JsonValue, which is alternative to * actual bean method introspection. */ AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod(); if (valueMethod != null) { /* Further, method itself may also be annotated to indicate * exact JsonSerializer to use for whatever value is returned... */ JsonSerializer<Object> ser = findSerializerFromAnnotation(config, valueMethod); return new JsonValueSerializer(valueMethod.getAnnotated(), ser); } return constructBeanSerializer(config, beanDesc); }