• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
5<!-- Generated by javadoc (1.8.0_162) on Tue Jan 23 20:22:13 PST 2018 -->
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<title>JsonSerialize (jackson-databind 2.9.0 API)</title>
8<meta name="date" content="2018-01-23">
9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
10<script type="text/javascript" src="../../../../../script.js"></script>
11</head>
12<body>
13<script type="text/javascript"><!--
14    try {
15        if (location.href.indexOf('is-external=true') == -1) {
16            parent.document.title="JsonSerialize (jackson-databind 2.9.0 API)";
17        }
18    }
19    catch(err) {
20    }
21//-->
22</script>
23<noscript>
24<div>JavaScript is disabled on your browser.</div>
25</noscript>
26<!-- ========= START OF TOP NAVBAR ======= -->
27<div class="topNav"><a name="navbar.top">
28<!--   -->
29</a>
30<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
31<a name="navbar.top.firstrow">
32<!--   -->
33</a>
34<ul class="navList" title="Navigation">
35<li><a href="../../../../../overview-summary.html">Overview</a></li>
36<li><a href="package-summary.html">Package</a></li>
37<li class="navBarCell1Rev">Class</li>
38<li><a href="class-use/JsonSerialize.html">Use</a></li>
39<li><a href="package-tree.html">Tree</a></li>
40<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
41<li><a href="../../../../../index-all.html">Index</a></li>
42<li><a href="../../../../../help-doc.html">Help</a></li>
43</ul>
44</div>
45<div class="subNav">
46<ul class="navList">
47<li><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.Value.html" title="class in com.fasterxml.jackson.databind.annotation"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
48<li><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Inclusion.html" title="enum in com.fasterxml.jackson.databind.annotation"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
49</ul>
50<ul class="navList">
51<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/annotation/JsonSerialize.html" target="_top">Frames</a></li>
52<li><a href="JsonSerialize.html" target="_top">No&nbsp;Frames</a></li>
53</ul>
54<ul class="navList" id="allclasses_navbar_top">
55<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
56</ul>
57<div>
58<script type="text/javascript"><!--
59  allClassesLink = document.getElementById("allclasses_navbar_top");
60  if(window==top) {
61    allClassesLink.style.display = "block";
62  }
63  else {
64    allClassesLink.style.display = "none";
65  }
66  //-->
67</script>
68</div>
69<div>
70<ul class="subNavList">
71<li>Summary:&nbsp;</li>
72<li>Field&nbsp;|&nbsp;</li>
73<li>Required&nbsp;|&nbsp;</li>
74<li><a href="#annotation.type.optional.element.summary">Optional</a></li>
75</ul>
76<ul class="subNavList">
77<li>Detail:&nbsp;</li>
78<li>Field&nbsp;|&nbsp;</li>
79<li><a href="#annotation.type.element.detail">Element</a></li>
80</ul>
81</div>
82<a name="skip.navbar.top">
83<!--   -->
84</a></div>
85<!-- ========= END OF TOP NAVBAR ========= -->
86<!-- ======== START OF CLASS DATA ======== -->
87<div class="header">
88<div class="subTitle">com.fasterxml.jackson.databind.annotation</div>
89<h2 title="Annotation Type JsonSerialize" class="title">Annotation Type JsonSerialize</h2>
90</div>
91<div class="contentContainer">
92<div class="description">
93<ul class="blockList">
94<li class="blockList">
95<hr>
96<br>
97<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Target.html?is-external=true" title="class or interface in java.lang.annotation">@Target</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Target.html?is-external=true#value--" title="class or interface in java.lang.annotation">value</a>={<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/ElementType.html?is-external=true#ANNOTATION_TYPE" title="class or interface in java.lang.annotation">ANNOTATION_TYPE</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/ElementType.html?is-external=true#METHOD" title="class or interface in java.lang.annotation">METHOD</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/ElementType.html?is-external=true#FIELD" title="class or interface in java.lang.annotation">FIELD</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/ElementType.html?is-external=true#TYPE" title="class or interface in java.lang.annotation">TYPE</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/ElementType.html?is-external=true#PARAMETER" title="class or interface in java.lang.annotation">PARAMETER</a>})
98 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Retention.html?is-external=true" title="class or interface in java.lang.annotation">@Retention</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Retention.html?is-external=true#value--" title="class or interface in java.lang.annotation">value</a>=<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/RetentionPolicy.html?is-external=true#RUNTIME" title="class or interface in java.lang.annotation">RUNTIME</a>)
99public @interface <span class="memberNameLabel">JsonSerialize</span></pre>
100<div class="block">Annotation used for configuring serialization aspects, by attaching
101 to "getter" methods or fields, or to value classes.
102 When annotating value classes, configuration is used for instances
103 of the value class but can be overridden by more specific annotations
104 (ones that attach to methods or fields).
105<p>
106 An example annotation would be:
107<pre>
108  &#64;JsonSerialize(using=MySerializer.class,
109    as=MySubClass.class,
110    typing=JsonSerialize.Typing.STATIC
111  )
112</pre>
113 (which would be redundant, since some properties block others:
114 specifically, 'using' has precedence over 'as', which has precedence
115 over 'typing' setting)</div>
116</li>
117</ul>
118</div>
119<div class="summary">
120<ul class="blockList">
121<li class="blockList">
122<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== -->
123<ul class="blockList">
124<li class="blockList"><a name="annotation.type.optional.element.summary">
125<!--   -->
126</a>
127<h3>Optional Element Summary</h3>
128<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Optional Element Summary table, listing optional elements, and an explanation">
129<caption><span>Optional Elements</span><span class="tabEnd">&nbsp;</span></caption>
130<tr>
131<th class="colFirst" scope="col">Modifier and Type</th>
132<th class="colLast" scope="col">Optional Element and Description</th>
133</tr>
134<tr class="altColor">
135<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;</code></td>
136<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#as--">as</a></span></code>
137<div class="block">Supertype (of declared type, which itself is supertype of runtime type)
138 to use as type when locating serializer to use.</div>
139</td>
140</tr>
141<tr class="rowColor">
142<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;</code></td>
143<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#contentAs--">contentAs</a></span></code>
144<div class="block">Concrete type to serialize content value (elements
145 of a Collection/array, values of Maps) as,
146 instead of type otherwise declared.</div>
147</td>
148</tr>
149<tr class="altColor">
150<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/util/Converter.html" title="interface in com.fasterxml.jackson.databind.util">Converter</a>&gt;</code></td>
151<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#contentConverter--">contentConverter</a></span></code>
152<div class="block">Similar to <a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#converter--"><code>converter()</code></a>, but used for values of structures types
153 (List, arrays, Maps).</div>
154</td>
155</tr>
156<tr class="rowColor">
157<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&gt;</code></td>
158<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#contentUsing--">contentUsing</a></span></code>
159<div class="block">Serializer class to use for serializing contents (elements
160 of a Collection/array, values of Maps) of annotated property.</div>
161</td>
162</tr>
163<tr class="altColor">
164<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/util/Converter.html" title="interface in com.fasterxml.jackson.databind.util">Converter</a>&gt;</code></td>
165<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#converter--">converter</a></span></code>
166<div class="block">Which helper object is to be used to convert type into something
167 that Jackson knows how to serialize; either because base type
168 cannot be serialized easily, or just to alter serialization.</div>
169</td>
170</tr>
171<tr class="rowColor">
172<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Inclusion.html" title="enum in com.fasterxml.jackson.databind.annotation">JsonSerialize.Inclusion</a></code></td>
173<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#include--">include</a></span></code>
174<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
175<div class="block"><span class="deprecationComment">As of Jackson 2.0, this annotation has been replaced
176    by <a href="http://fasterxml.github.com/jackson-annotations/javadoc/2.9/com/fasterxml/jackson/annotation/JsonInclude.html?is-external=true" title="class or interface in com.fasterxml.jackson.annotation"><code>JsonInclude</code></a></span></div>
177</div>
178</td>
179</tr>
180<tr class="altColor">
181<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;</code></td>
182<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#keyAs--">keyAs</a></span></code>
183<div class="block">Concrete type to serialize keys of <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> as,
184 instead of type otherwise declared.</div>
185</td>
186</tr>
187<tr class="rowColor">
188<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&gt;</code></td>
189<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#keyUsing--">keyUsing</a></span></code>
190<div class="block">Serializer class to use for serializing Map keys
191 of annotated property.</div>
192</td>
193</tr>
194<tr class="altColor">
195<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&gt;</code></td>
196<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#nullsUsing--">nullsUsing</a></span></code>
197<div class="block">Serializer class to use for serializing nulls for properties that
198 are annotated, instead of the
199 default null serializer.</div>
200</td>
201</tr>
202<tr class="rowColor">
203<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Typing.html" title="enum in com.fasterxml.jackson.databind.annotation">JsonSerialize.Typing</a></code></td>
204<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#typing--">typing</a></span></code>
205<div class="block">Whether type detection used is dynamic or static: that is,
206 whether actual runtime type is used (dynamic), or just the
207 declared type (static).</div>
208</td>
209</tr>
210<tr class="altColor">
211<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&gt;</code></td>
212<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#using--">using</a></span></code>
213<div class="block">Serializer class to use for
214 serializing associated value.</div>
215</td>
216</tr>
217</table>
218</li>
219</ul>
220</li>
221</ul>
222</div>
223<div class="details">
224<ul class="blockList">
225<li class="blockList">
226<!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== -->
227<ul class="blockList">
228<li class="blockList"><a name="annotation.type.element.detail">
229<!--   -->
230</a>
231<h3>Element Detail</h3>
232<a name="using--">
233<!--   -->
234</a>
235<ul class="blockList">
236<li class="blockList">
237<h4>using</h4>
238<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&gt;&nbsp;using</pre>
239<div class="block">Serializer class to use for
240 serializing associated value. Depending on what is annotated,
241 value is either an instance of annotated class (used globablly
242 anywhere where class serializer is needed); or only used for
243 serializing property access via a getter method.</div>
244<dl>
245<dt>Default:</dt>
246<dd>com.fasterxml.jackson.databind.JsonSerializer.None.class</dd>
247</dl>
248</li>
249</ul>
250</li>
251</ul>
252<ul class="blockList">
253<li class="blockList"><a name="contentUsing--">
254<!--   -->
255</a>
256<ul class="blockList">
257<li class="blockList">
258<h4>contentUsing</h4>
259<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&gt;&nbsp;contentUsing</pre>
260<div class="block">Serializer class to use for serializing contents (elements
261 of a Collection/array, values of Maps) of annotated property.
262 Can only be used on properties (methods, fields, constructors),
263 and not value classes themselves (as they are typically generic)</div>
264<dl>
265<dt>Default:</dt>
266<dd>com.fasterxml.jackson.databind.JsonSerializer.None.class</dd>
267</dl>
268</li>
269</ul>
270</li>
271</ul>
272<ul class="blockList">
273<li class="blockList"><a name="keyUsing--">
274<!--   -->
275</a>
276<ul class="blockList">
277<li class="blockList">
278<h4>keyUsing</h4>
279<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&gt;&nbsp;keyUsing</pre>
280<div class="block">Serializer class to use for serializing Map keys
281 of annotated property.
282 Can only be used on properties (methods, fields, constructors),
283 and not value classes themselves.</div>
284<dl>
285<dt>Default:</dt>
286<dd>com.fasterxml.jackson.databind.JsonSerializer.None.class</dd>
287</dl>
288</li>
289</ul>
290</li>
291</ul>
292<ul class="blockList">
293<li class="blockList"><a name="nullsUsing--">
294<!--   -->
295</a>
296<ul class="blockList">
297<li class="blockList">
298<h4>nullsUsing</h4>
299<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&gt;&nbsp;nullsUsing</pre>
300<div class="block">Serializer class to use for serializing nulls for properties that
301 are annotated, instead of the
302 default null serializer.
303 Note that using this property when annotation types (classes) has
304 no effect currently (it is possible this could be improved in future).</div>
305<dl>
306<dt><span class="simpleTagLabel">Since:</span></dt>
307<dd>2.3</dd>
308</dl>
309<dl>
310<dt>Default:</dt>
311<dd>com.fasterxml.jackson.databind.JsonSerializer.None.class</dd>
312</dl>
313</li>
314</ul>
315</li>
316</ul>
317<ul class="blockList">
318<li class="blockList"><a name="as--">
319<!--   -->
320</a>
321<ul class="blockList">
322<li class="blockList">
323<h4>as</h4>
324<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;as</pre>
325<div class="block">Supertype (of declared type, which itself is supertype of runtime type)
326 to use as type when locating serializer to use.
327<p>
328 Bogus type <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Void.html?is-external=true" title="class or interface in java.lang"><code>Void</code></a> can be used to indicate that declared
329 type is used as is (i.e. this annotation property has no setting);
330 this since annotation properties are not allowed to have null value.
331<p>
332 Note: if <a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#using--"><code>using()</code></a> is also used it has precedence
333 (since it directly specifies
334 serializer, whereas this would only be used to locate the
335 serializer)
336 and value of this annotation property is ignored.</div>
337<dl>
338<dt>Default:</dt>
339<dd>java.lang.Void.class</dd>
340</dl>
341</li>
342</ul>
343</li>
344</ul>
345<ul class="blockList">
346<li class="blockList"><a name="keyAs--">
347<!--   -->
348</a>
349<ul class="blockList">
350<li class="blockList">
351<h4>keyAs</h4>
352<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;keyAs</pre>
353<div class="block">Concrete type to serialize keys of <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> as,
354 instead of type otherwise declared.
355 Must be a supertype of declared type; otherwise an exception may be
356 thrown by serializer.</div>
357<dl>
358<dt>Default:</dt>
359<dd>java.lang.Void.class</dd>
360</dl>
361</li>
362</ul>
363</li>
364</ul>
365<ul class="blockList">
366<li class="blockList"><a name="contentAs--">
367<!--   -->
368</a>
369<ul class="blockList">
370<li class="blockList">
371<h4>contentAs</h4>
372<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;contentAs</pre>
373<div class="block">Concrete type to serialize content value (elements
374 of a Collection/array, values of Maps) as,
375 instead of type otherwise declared.
376 Must be a supertype of declared type; otherwise an exception may be
377 thrown by serializer.</div>
378<dl>
379<dt>Default:</dt>
380<dd>java.lang.Void.class</dd>
381</dl>
382</li>
383</ul>
384</li>
385</ul>
386<ul class="blockList">
387<li class="blockList"><a name="typing--">
388<!--   -->
389</a>
390<ul class="blockList">
391<li class="blockList">
392<h4>typing</h4>
393<pre>public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Typing.html" title="enum in com.fasterxml.jackson.databind.annotation">JsonSerialize.Typing</a>&nbsp;typing</pre>
394<div class="block">Whether type detection used is dynamic or static: that is,
395 whether actual runtime type is used (dynamic), or just the
396 declared type (static).
397<p>
398 Note that Jackson 2.3 changed default to <code>DEFAULT_TYPING</code>,
399 which is roughly same as saying "whatever".
400 This is important as it allows avoiding accidental overrides
401 at property level.</div>
402<dl>
403<dt>Default:</dt>
404<dd>com.fasterxml.jackson.databind.annotation.JsonSerialize.Typing.DEFAULT_TYPING</dd>
405</dl>
406</li>
407</ul>
408</li>
409</ul>
410<ul class="blockList">
411<li class="blockList"><a name="converter--">
412<!--   -->
413</a>
414<ul class="blockList">
415<li class="blockList">
416<h4>converter</h4>
417<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/util/Converter.html" title="interface in com.fasterxml.jackson.databind.util">Converter</a>&gt;&nbsp;converter</pre>
418<div class="block">Which helper object is to be used to convert type into something
419 that Jackson knows how to serialize; either because base type
420 cannot be serialized easily, or just to alter serialization.</div>
421<dl>
422<dt><span class="simpleTagLabel">Since:</span></dt>
423<dd>2.2</dd>
424</dl>
425<dl>
426<dt>Default:</dt>
427<dd>com.fasterxml.jackson.databind.util.Converter.None.class</dd>
428</dl>
429</li>
430</ul>
431</li>
432</ul>
433<ul class="blockList">
434<li class="blockList"><a name="contentConverter--">
435<!--   -->
436</a>
437<ul class="blockList">
438<li class="blockList">
439<h4>contentConverter</h4>
440<pre>public abstract&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;? extends <a href="../../../../../com/fasterxml/jackson/databind/util/Converter.html" title="interface in com.fasterxml.jackson.databind.util">Converter</a>&gt;&nbsp;contentConverter</pre>
441<div class="block">Similar to <a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#converter--"><code>converter()</code></a>, but used for values of structures types
442 (List, arrays, Maps).
443 Note that this property does NOT have effect when used as Class annotation;
444 it can only be used as property annotation: this because association between
445 container and value types is loose and as such converters seldom make sense
446 for such usage.</div>
447<dl>
448<dt><span class="simpleTagLabel">Since:</span></dt>
449<dd>2.2</dd>
450</dl>
451<dl>
452<dt>Default:</dt>
453<dd>com.fasterxml.jackson.databind.util.Converter.None.class</dd>
454</dl>
455</li>
456</ul>
457</li>
458</ul>
459<ul class="blockList">
460<li class="blockList"><a name="include--">
461<!--   -->
462</a>
463<ul class="blockListLast">
464<li class="blockList">
465<h4>include</h4>
466<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
467public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Inclusion.html" title="enum in com.fasterxml.jackson.databind.annotation">JsonSerialize.Inclusion</a>&nbsp;include</pre>
468<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of Jackson 2.0, this annotation has been replaced
469    by <a href="http://fasterxml.github.com/jackson-annotations/javadoc/2.9/com/fasterxml/jackson/annotation/JsonInclude.html?is-external=true" title="class or interface in com.fasterxml.jackson.annotation"><code>JsonInclude</code></a></span></div>
470<div class="block">Which properties of annotated Bean are
471 to be included in serialization (has no effect on other types
472 like enums, primitives or collections).
473 Choices are "all", "properties that have value other than null"
474 and "properties that have non-default value" (i.e. default value
475 being property setting for a Bean constructed with default no-arg
476 constructor, often null).
477<p>
478 This property has been replaced by special-purpose <a href="http://fasterxml.github.com/jackson-annotations/javadoc/2.9/com/fasterxml/jackson/annotation/JsonInclude.html?is-external=true" title="class or interface in com.fasterxml.jackson.annotation"><code>JsonInclude</code></a>
479 annotation, introduced in Jackson 2.0.
480<p>
481 Note that Jackson 2.3 changed default to <code>DEFAULT_INCLUSION</code>,
482 which is roughly same as saying "whatever". This is important because
483 it allows hierarchic default values to be used.</div>
484<dl>
485<dt>Default:</dt>
486<dd>com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion.DEFAULT_INCLUSION</dd>
487</dl>
488</li>
489</ul>
490</li>
491</ul>
492</li>
493</ul>
494</div>
495</div>
496<!-- ========= END OF CLASS DATA ========= -->
497<!-- ======= START OF BOTTOM NAVBAR ====== -->
498<div class="bottomNav"><a name="navbar.bottom">
499<!--   -->
500</a>
501<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
502<a name="navbar.bottom.firstrow">
503<!--   -->
504</a>
505<ul class="navList" title="Navigation">
506<li><a href="../../../../../overview-summary.html">Overview</a></li>
507<li><a href="package-summary.html">Package</a></li>
508<li class="navBarCell1Rev">Class</li>
509<li><a href="class-use/JsonSerialize.html">Use</a></li>
510<li><a href="package-tree.html">Tree</a></li>
511<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
512<li><a href="../../../../../index-all.html">Index</a></li>
513<li><a href="../../../../../help-doc.html">Help</a></li>
514</ul>
515</div>
516<div class="subNav">
517<ul class="navList">
518<li><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.Value.html" title="class in com.fasterxml.jackson.databind.annotation"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
519<li><a href="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Inclusion.html" title="enum in com.fasterxml.jackson.databind.annotation"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
520</ul>
521<ul class="navList">
522<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/annotation/JsonSerialize.html" target="_top">Frames</a></li>
523<li><a href="JsonSerialize.html" target="_top">No&nbsp;Frames</a></li>
524</ul>
525<ul class="navList" id="allclasses_navbar_bottom">
526<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
527</ul>
528<div>
529<script type="text/javascript"><!--
530  allClassesLink = document.getElementById("allclasses_navbar_bottom");
531  if(window==top) {
532    allClassesLink.style.display = "block";
533  }
534  else {
535    allClassesLink.style.display = "none";
536  }
537  //-->
538</script>
539</div>
540<div>
541<ul class="subNavList">
542<li>Summary:&nbsp;</li>
543<li>Field&nbsp;|&nbsp;</li>
544<li>Required&nbsp;|&nbsp;</li>
545<li><a href="#annotation.type.optional.element.summary">Optional</a></li>
546</ul>
547<ul class="subNavList">
548<li>Detail:&nbsp;</li>
549<li>Field&nbsp;|&nbsp;</li>
550<li><a href="#annotation.type.element.detail">Element</a></li>
551</ul>
552</div>
553<a name="skip.navbar.bottom">
554<!--   -->
555</a></div>
556<!-- ======== END OF BOTTOM NAVBAR ======= -->
557<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2018 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p>
558</body>
559</html>
560