Commit f51b304c authored by Nicolás J. García's avatar Nicolás J. García Committed by Andy Wilkinson

Update JackonAutoConfiguration to apply all http.mappers properties

Previously, only the http.mappers.json-sort-keys property was applied
by JacksonAutoConfiguration. This commit updates it to also apply the
http.mappers.json-pretty-print property as well.

See #1919
parent 33dfab08
...@@ -90,6 +90,9 @@ public class JacksonAutoConfiguration { ...@@ -90,6 +90,9 @@ public class JacksonAutoConfiguration {
objectMapper.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, objectMapper.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS,
true); true);
} }
if (this.properties.isJsonPrettyPrint()) {
objectMapper.configure(SerializationFeature.INDENT_OUTPUT, true);
}
return objectMapper; return objectMapper;
} }
......
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