An on/off setting of a mapper, named after Jackson's feature flags.
The four enums that implement it (SerializationFeature,
DeserializationFeature, DateTimeFeature, MapperFeature) let code
written against Jackson's style configure a mapper with
JsonMapperBuilder.enable / JsonMapperBuilder.disable and ask
ObjectMapper.isEnabled. Each flag is also a named parameter of the
ObjectMapper constructor; the spring.json.* properties set them
(Spring Boot: spring.jackson.*).
// Reject unknown properties in this mapper.
final strict = JsonMapper.builder()
.enable(DeserializationFeature.failOnUnknownProperties)
.build();
Properties
- enabledByDefault → bool
-
Whether the feature is on when nobody configured it.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited