@Target(value={ANNOTATION_TYPE,FIELD,METHOD,PARAMETER}) @Retention(value=RUNTIME) public @interface JsonTypeId
On deserialization annotation has no effect, as visibility of type id
is governed by value of JsonTypeInfo.visible()
; properties with
this annotation get no special handling.
On serialization, this annotation will exclude property from being
serialized along other properties; instead, its value is serialized
as the type identifier. Since type identifier may be included in
various places, it may still appear like 'normal' property (when using
JsonTypeInfo.As.PROPERTY
), but is more commonly embedded
in a different place, as per inclusion rules (see JsonTypeInfo
for details).
Copyright © 2008–2016 FasterXML. All rights reserved.