--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To post to this group, send email to jackso...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonInclude(Include.NON_NULL) // only include non-null properties
@JsonPropertyOrder({ "id", "name" }) // ensure that 'id' and 'name' are always serialized before other properties
public @interface StdAnnotationsbut same also works for property annotations, not just class annotations. |
From: Tatu Saloranta
Sent: Wednesday, July 29, 2015 7:23 PM
To: Dave Ariens
Reply To: jackso...@googlegroups.com
Cc: jackson-user
Subject: Re: [jackson-user] Extending JacksonAnnotationIntrospector to Identify Attributes for Serialization
|