• Home
  • 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>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_29) on Mon Mar 26 19:07:11 PDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<TITLE>
8JsonSerialize (jackson-databind 2.0.0 API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-03-26">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="JsonSerialize (jackson-databind 2.0.0 API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/JsonSerialize.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
48  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
49  </TR>
50</TABLE>
51</TD>
52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53</EM>
54</TD>
55</TR>
56
57<TR>
58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.Value.html" title="class in com.fasterxml.jackson.databind.annotation"><B>PREV CLASS</B></A>&nbsp;
60&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Inclusion.html" title="enum in com.fasterxml.jackson.databind.annotation"><B>NEXT CLASS</B></A></FONT></TD>
61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
62  <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/annotation/JsonSerialize.html" target="_top"><B>FRAMES</B></A>  &nbsp;
63&nbsp;<A HREF="JsonSerialize.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
64&nbsp;<SCRIPT type="text/javascript">
65  <!--
66  if(window==top) {
67    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
68  }
69  //-->
70</SCRIPT>
71<NOSCRIPT>
72  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
73</NOSCRIPT>
74
75
76</FONT></TD>
77</TR>
78<TR>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80  SUMMARY:&nbsp;REQUIRED&nbsp;|&nbsp;<A HREF="#annotation_type_optional_element_summary">OPTIONAL</A></FONT></TD>
81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
82DETAIL:&nbsp;<A HREF="#annotation_type_element_detail">ELEMENT</A></FONT></TD>
83</TR>
84</TABLE>
85<A NAME="skip-navbar_top"></A>
86<!-- ========= END OF TOP NAVBAR ========= -->
87
88<HR>
89<!-- ======== START OF CLASS DATA ======== -->
90<H2>
91<FONT SIZE="-1">
92com.fasterxml.jackson.databind.annotation</FONT>
93<BR>
94Annotation Type JsonSerialize</H2>
95<HR>
96<DL>
97<DT><PRE><FONT SIZE="-1"><A HREF="http://docs.oracle.com/javase/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/docs/api/java/lang/annotation/RetentionPolicy.html?is-external=true#RUNTIME" title="class or interface in java.lang.annotation">RUNTIME</A>)
99</FONT>public @interface <B>JsonSerialize</B></DL>
100</PRE>
101
102<P>
103Annotation used for configuring serialization aspects, by attaching
104 to "getter" methods or fields, or to value classes.
105 When annotating value classes, configuration is used for instances
106 of the value class but can be overridden by more specific annotations
107 (ones that attach to methods or fields).
108<p>
109 An example annotation would be:
110<pre>
111  &#64;JsonSerialize(using=MySerializer.class,
112    as=MySubClass.class,
113    typing=JsonSerialize.Typing.STATIC
114  )
115</pre>
116 (which would be redundant, since some properties block others:
117 specifically, 'using' has precedence over 'as', which has precedence
118 over 'typing' setting)
119<P>
120
121<P>
122<HR>
123
124<P>
125<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== -->
126
127<A NAME="annotation_type_optional_element_summary"><!-- --></A>
128<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
129<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
130<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
131<B>Optional Element Summary</B></FONT></TH>
132</TR>
133<TR BGCOLOR="white" CLASS="TableRowColor">
134<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;</CODE></FONT></TD>
136<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#as()">as</A></B></CODE>
137
138<BR>
139&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Supertype (of declared type, which itself is supertype of runtime type)
140 to use as type when locating serializer to use.</TD>
141</TR>
142<TR BGCOLOR="white" CLASS="TableRowColor">
143<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;</CODE></FONT></TD>
145<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#contentAs()">contentAs</A></B></CODE>
146
147<BR>
148&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Concrete type to serialize content value (elements
149 of a Collection/array, values of Maps) as,
150 instead of type otherwise declared.</TD>
151</TR>
152<TR BGCOLOR="white" CLASS="TableRowColor">
153<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/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>&lt;?&gt;&gt;</CODE></FONT></TD>
155<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#contentUsing()">contentUsing</A></B></CODE>
156
157<BR>
158&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serializer class to use for serializing contents (elements
159 of a Collection/array, values of Maps) of annotated property.</TD>
160</TR>
161<TR BGCOLOR="white" CLASS="TableRowColor">
162<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163<CODE>&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Inclusion.html" title="enum in com.fasterxml.jackson.databind.annotation">JsonSerialize.Inclusion</A></CODE></FONT></TD>
164<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#include()">include</A></B></CODE>
165
166<BR>
167&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>As of Jackson 2.0, this annotation has been replaced
168    by <CODE>JsonInclude</CODE></I></TD>
169</TR>
170<TR BGCOLOR="white" CLASS="TableRowColor">
171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt;</CODE></FONT></TD>
173<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#keyAs()">keyAs</A></B></CODE>
174
175<BR>
176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Concrete type to serialize keys of <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><CODE>Map</CODE></A> as,
177 instead of type otherwise declared.</TD>
178</TR>
179<TR BGCOLOR="white" CLASS="TableRowColor">
180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/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>&lt;?&gt;&gt;</CODE></FONT></TD>
182<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#keyUsing()">keyUsing</A></B></CODE>
183
184<BR>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serializer class to use for serializing Map keys
186 of annotated property.</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE>&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Typing.html" title="enum in com.fasterxml.jackson.databind.annotation">JsonSerialize.Typing</A></CODE></FONT></TD>
191<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#typing()">typing</A></B></CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether type detection used is dynamic or static: that is,
195 whether actual runtime type is used (dynamic), or just the
196 declared type (static).</TD>
197</TR>
198<TR BGCOLOR="white" CLASS="TableRowColor">
199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200<CODE>&nbsp;<A HREF="http://docs.oracle.com/javase/6/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>&lt;?&gt;&gt;</CODE></FONT></TD>
201<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#using()">using</A></B></CODE>
202
203<BR>
204&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serializer class to use for
205 serializing associated value.</TD>
206</TR>
207</TABLE>
208&nbsp;
209<P>
210<A NAME="using()"><!-- --></A><H3>
211using</H3>
212<PRE>
213public abstract <A HREF="http://docs.oracle.com/javase/6/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>&lt;?&gt;&gt; <B>using</B></PRE>
214<DL>
215<DD>Serializer class to use for
216 serializing associated value. Depending on what is annotated,
217 value is either an instance of annotated class (used globablly
218 anywhere where class serializer is needed); or only used for
219 serializing property access via a getter method.
220<P>
221<DD><DL>
222</DL>
223</DD>
224<DD><DL>
225</DL>
226<DL>
227<DT><B>Default:</B><DD>com.fasterxml.jackson.databind.JsonSerializer.None.class</DD>
228</DL>
229</DL>
230<HR>
231
232<A NAME="contentUsing()"><!-- --></A><H3>
233contentUsing</H3>
234<PRE>
235public abstract <A HREF="http://docs.oracle.com/javase/6/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>&lt;?&gt;&gt; <B>contentUsing</B></PRE>
236<DL>
237<DD>Serializer class to use for serializing contents (elements
238 of a Collection/array, values of Maps) of annotated property.
239 Can only be used on properties (methods, fields, constructors),
240 and not value classes themselves (as they are typically generic)
241<P>
242<DD><DL>
243</DL>
244</DD>
245<DD><DL>
246</DL>
247<DL>
248<DT><B>Default:</B><DD>com.fasterxml.jackson.databind.JsonSerializer.None.class</DD>
249</DL>
250</DL>
251<HR>
252
253<A NAME="keyUsing()"><!-- --></A><H3>
254keyUsing</H3>
255<PRE>
256public abstract <A HREF="http://docs.oracle.com/javase/6/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>&lt;?&gt;&gt; <B>keyUsing</B></PRE>
257<DL>
258<DD>Serializer class to use for serializing Map keys
259 of annotated property.
260 Can only be used on properties (methods, fields, constructors),
261 and not value classes themselves.
262<P>
263<DD><DL>
264</DL>
265</DD>
266<DD><DL>
267</DL>
268<DL>
269<DT><B>Default:</B><DD>com.fasterxml.jackson.databind.JsonSerializer.None.class</DD>
270</DL>
271</DL>
272<HR>
273
274<A NAME="as()"><!-- --></A><H3>
275as</H3>
276<PRE>
277public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt; <B>as</B></PRE>
278<DL>
279<DD>Supertype (of declared type, which itself is supertype of runtime type)
280 to use as type when locating serializer to use.
281<p>
282 Bogus type <A HREF="../../../../../com/fasterxml/jackson/databind/annotation/NoClass.html" title="class in com.fasterxml.jackson.databind.annotation"><CODE>NoClass</CODE></A> can be used to indicate that declared
283 type is used as is (i.e. this annotation property has no setting);
284 this since annotation properties are not allowed to have null value.
285<p>
286 Note: if <A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#using()"><CODE>using()</CODE></A> is also used it has precedence
287 (since it directly specifies
288 serializer, whereas this would only be used to locate the
289 serializer)
290 and value of this annotation property is ignored.
291<P>
292<DD><DL>
293</DL>
294</DD>
295<DD><DL>
296</DL>
297<DL>
298<DT><B>Default:</B><DD>com.fasterxml.jackson.databind.annotation.NoClass.class</DD>
299</DL>
300</DL>
301<HR>
302
303<A NAME="keyAs()"><!-- --></A><H3>
304keyAs</H3>
305<PRE>
306public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt; <B>keyAs</B></PRE>
307<DL>
308<DD>Concrete type to serialize keys of <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><CODE>Map</CODE></A> as,
309 instead of type otherwise declared.
310 Must be a supertype of declared type; otherwise an exception may be
311 thrown by serializer.
312<P>
313<DD><DL>
314</DL>
315</DD>
316<DD><DL>
317</DL>
318<DL>
319<DT><B>Default:</B><DD>com.fasterxml.jackson.databind.annotation.NoClass.class</DD>
320</DL>
321</DL>
322<HR>
323
324<A NAME="contentAs()"><!-- --></A><H3>
325contentAs</H3>
326<PRE>
327public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&lt;?&gt; <B>contentAs</B></PRE>
328<DL>
329<DD>Concrete type to serialize content value (elements
330 of a Collection/array, values of Maps) as,
331 instead of type otherwise declared.
332 Must be a supertype of declared type; otherwise an exception may be
333 thrown by serializer.
334<P>
335<DD><DL>
336</DL>
337</DD>
338<DD><DL>
339</DL>
340<DL>
341<DT><B>Default:</B><DD>com.fasterxml.jackson.databind.annotation.NoClass.class</DD>
342</DL>
343</DL>
344<HR>
345
346<A NAME="typing()"><!-- --></A><H3>
347typing</H3>
348<PRE>
349public abstract <A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Typing.html" title="enum in com.fasterxml.jackson.databind.annotation">JsonSerialize.Typing</A> <B>typing</B></PRE>
350<DL>
351<DD>Whether type detection used is dynamic or static: that is,
352 whether actual runtime type is used (dynamic), or just the
353 declared type (static).
354<P>
355<DD><DL>
356</DL>
357</DD>
358<DD><DL>
359</DL>
360<DL>
361<DT><B>Default:</B><DD>com.fasterxml.jackson.databind.annotation.JsonSerialize.Typing.DYNAMIC</DD>
362</DL>
363</DL>
364<HR>
365
366<A NAME="include()"><!-- --></A><H3>
367include</H3>
368<PRE>
369<FONT SIZE="-1"><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
370</FONT>public abstract <A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Inclusion.html" title="enum in com.fasterxml.jackson.databind.annotation">JsonSerialize.Inclusion</A> <B>include</B></PRE>
371<DL>
372<DD><B>Deprecated.</B>&nbsp;<I>As of Jackson 2.0, this annotation has been replaced
373    by <CODE>JsonInclude</CODE></I>
374<P>
375<DD>Which properties of annotated Bean are
376 to be included in serialization (has no effect on other types
377 like enums, primitives or collections).
378 Choices are "all", "properties that have value other than null"
379 and "properties that have non-default value" (i.e. default value
380 being property setting for a Bean constructed with default no-arg
381 constructor, often null).
382<P>
383<DD><DL>
384</DL>
385</DD>
386<DD><DL>
387</DL>
388<DL>
389<DT><B>Default:</B><DD>com.fasterxml.jackson.databind.annotation.JsonSerialize.Inclusion.ALWAYS</DD>
390</DL>
391</DL>
392<!-- ========= END OF CLASS DATA ========= -->
393<HR>
394
395
396<!-- ======= START OF BOTTOM NAVBAR ====== -->
397<A NAME="navbar_bottom"><!-- --></A>
398<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
399<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
400<TR>
401<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
402<A NAME="navbar_bottom_firstrow"><!-- --></A>
403<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
404  <TR ALIGN="center" VALIGN="top">
405  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
406  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
407  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
408  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/JsonSerialize.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
409  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
410  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
411  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
412  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
413  </TR>
414</TABLE>
415</TD>
416<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
417</EM>
418</TD>
419</TR>
420
421<TR>
422<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
423&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.Value.html" title="class in com.fasterxml.jackson.databind.annotation"><B>PREV CLASS</B></A>&nbsp;
424&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.Inclusion.html" title="enum in com.fasterxml.jackson.databind.annotation"><B>NEXT CLASS</B></A></FONT></TD>
425<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
426  <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/annotation/JsonSerialize.html" target="_top"><B>FRAMES</B></A>  &nbsp;
427&nbsp;<A HREF="JsonSerialize.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
428&nbsp;<SCRIPT type="text/javascript">
429  <!--
430  if(window==top) {
431    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
432  }
433  //-->
434</SCRIPT>
435<NOSCRIPT>
436  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
437</NOSCRIPT>
438
439
440</FONT></TD>
441</TR>
442<TR>
443<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
444  SUMMARY:&nbsp;REQUIRED&nbsp;|&nbsp;<A HREF="#annotation_type_optional_element_summary">OPTIONAL</A></FONT></TD>
445<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
446DETAIL:&nbsp;<A HREF="#annotation_type_element_detail">ELEMENT</A></FONT></TD>
447</TR>
448</TABLE>
449<A NAME="skip-navbar_bottom"></A>
450<!-- ======== END OF BOTTOM NAVBAR ======= -->
451
452<HR>
453Copyright &#169; 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved.
454</BODY>
455</HTML>
456