Package org.springframework.boot.jackson
Annotation Interface JsonMixin
Provides a mixin class implementation that registers with Jackson when using
JsonMixinModule
.- Since:
- 2.7.0
- See Also:
-
Optional Element Summary
-
Element Details
-
value
Alias for thetype()
attribute. Allows for more concise annotation declarations e.g.:@JsonMixin(MyType.class)
instead of@JsonMixin(type=MyType.class)
.- Returns:
- the mixed-in classes
- Since:
- 2.7.0
- Default:
- {}
-
type
The types that are handled by the provided mix-in class.value()
is an alias for (and mutually exclusive with) this attribute.- Returns:
- the mixed-in classes
- Since:
- 2.7.0
- Default:
- {}
-