Commit 06826603 authored by Eddú Meléndez's avatar Eddú Meléndez Committed by Stephane Nicoll

Add documentation for serialization-inclusion

Document `spring.jackson.serialization-inclusion`.

Closes gh-3224
parent c2b606de
......@@ -971,7 +971,7 @@ Spring Boot has also some features to make it easier to customize this behavior.
You can configure the `ObjectMapper` and `XmlMapper` instances using the environment.
Jackson provides an extensive suite of simple on/off features that can be used to
configure various aspects of its processing. These features are described in five enums in
configure various aspects of its processing. These features are described in six enums in
Jackson which map onto properties in the environment:
|===
......@@ -991,6 +991,9 @@ Jackson which map onto properties in the environment:
|`com.fasterxml.jackson.databind.SerializationFeature`
|`spring.jackson.serialization.<feature_name>=true\|false`
|`com.fasterxml.jackson.annotation.JsonInclude.Include`
|`spring.jackson.serialization-inclusion=always\|non_null\|non_default\|non_empty`
|===
For example, to enable pretty print, set `spring.jackson.serialization.indent_output=true`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment