@Target(value={FIELD,METHOD,PARAMETER})
@Retention(value=RUNTIME)
public @interface JsonProperty
Default value ("") indicates that the field name is used as the property name without any modifications, but it can be specified to non-empty value to specify different name. Property name refers to name used externally, as the field name in Json objects.
NOTE: since version 1.1, annotation has also been applicable to fields (not with 1.0).
NOTE: since version 1.2, annotation has also been applicable to (constructor) parameters
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
value
Defines name of the logical property, i.e.
|