From 0682660387ed2ee312abdf23e1f74d843841bb2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Sun, 14 Jun 2015 14:51:28 -0500 Subject: [PATCH] Add documentation for serialization-inclusion Document `spring.jackson.serialization-inclusion`. Closes gh-3224 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 0ea5e553d97..27650ea7825 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -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.=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`.