SPR-6932 Add option to extract value from single-key models in MappingJacksonJsonView

This commit is contained in:
Rossen Stoyanchev
2011-03-04 14:19:14 +00:00
parent 761a836236
commit 386d8fdaa6
3 changed files with 51 additions and 3 deletions

View File

@@ -2610,7 +2610,9 @@ simpleReport.reportDataKey=myBeanData</programlisting>
of framework-specific classes) will be encoded as JSON. For cases where the
contents of the map need to be filtered, users may specify a specific set of
model attributes to encode via the <literal>RenderedAttributes</literal>
property.</para>
property. The <literal>extractValueFromSingleKeyModel</literal> property
may also be used to have the value in single-key models extracted and
serialized directly rather than as a map of model attributes.</para>
<para>JSON mapping can be customized as needed through the use of Jackson's provided
annotations. When further control is needed, a custom