@@ -56,6 +56,9 @@ public class JsonValueSerializer
56
56
*/
57
57
protected final boolean _forceTypeInformation ;
58
58
59
+ /**
60
+ * Names of properties to ignore from Value class accessed using accessor.
61
+ */
59
62
protected final Set <String > _ignoredProperties ;
60
63
61
64
/*
@@ -68,7 +71,7 @@ public class JsonValueSerializer
68
71
* @param ser Explicit serializer to use, if caller knows it (which
69
72
* occurs if and only if the "value method" was annotated with
70
73
* {@link tools.jackson.databind.annotation.JsonSerialize#using}), otherwise
71
- * null
74
+ * {@code null}
72
75
*/
73
76
protected JsonValueSerializer (JavaType nominalType ,
74
77
JavaType valueType , boolean staticTyping ,
@@ -173,6 +176,9 @@ public ValueSerializer<?> createContextual(SerializerProvider ctxt,
173
176
*/
174
177
// I _think_ this can be considered a primary property...
175
178
ser = ctxt .findPrimaryPropertySerializer (_valueType , property );
179
+ // [databind#3647] : Support @JsonIgnoreProperties to work with @JsonValue
180
+ ser = _withIgnoreProperties (ctxt , _accessor , ser );
181
+
176
182
/* 09-Dec-2010, tatu: Turns out we must add special handling for
177
183
* cases where "native" (aka "natural") type is being serialized,
178
184
* using standard serializer
0 commit comments