Skip to content

Commit

Permalink
Document how to specify Jackson JSON view serialization hints
Browse files Browse the repository at this point in the history
Closes gh-23150
  • Loading branch information
sdeleuze committed Jun 18, 2019
1 parent d18d4d8 commit bd568ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/docs/asciidoc/web/webflux-functional.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ ServerResponse.created(location).build();
----
====

Depending on the codec used, it is possible to pass hint parameters to customize how the
body is serialized or deserialized. For example, to specify a https://wiki.fasterxml.com/JacksonJsonViews[Jackson JSON view]:

====
[source,java]
----
ServerResponse.ok().hint(Jackson2CodecSupport.JSON_VIEW_HINT, MyJacksonView.class).body(...);
----
====


[[webflux-fn-handler-classes]]
Expand Down

0 comments on commit bd568ea

Please sign in to comment.