diff --git a/src/asciidoc/integration.adoc b/src/asciidoc/integration.adoc index bdd0afa68d..d6f812d814 100644 --- a/src/asciidoc/integration.adoc +++ b/src/asciidoc/integration.adoc @@ -1258,9 +1258,9 @@ to serialize only a subset of the object properties. For example: [source,java,indent=0] [subs="verbatim,quotes"] ---- - JacksonSerializationValue jsv = new JacksonSerializationValue(new User("eric", "7!jd#h23"), - User.WithoutPasswordView.class); - HttpEntity entity = new HttpEntity(jsv); + MappingJacksonValue value = new MappingJacksonValue(new User("eric", "7!jd#h23")); + value.setSerializationView(User.WithoutPasswordView.class); + HttpEntity entity = new HttpEntity(value); String s = template.postForObject("http://example.com/user", entity, String.class); ----