@Target(value={ANNOTATION_TYPE,FIELD,METHOD,PARAMETER})
@Retention(value=RUNTIME)
public @interface JsonAlias
Examples:
public class Info { @JsonAlias({ "n", "Name" }) public String name; }
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
value
One or more secondary names to accept as aliases to the official name.
|
Copyright © 2010 - 2020 Adobe. All Rights Reserved