Skip to content

Add support for subset of jackson annotations #32

@bkhall

Description

@bkhall

To allow JSON tag names to NOT match field names, setters, and getters.

Ex:
Where a JSON object contains a tag like this: "name": "John",

It would properly populate a field in a class like this:

@JsonProperty("name")
protected String mPrettyName;

public String getPrettyName() {
    return mPrettyName;
}

public void setPrettyName(String prettyName) {
    mPrettyName = prettyName;
}

Note that the field, setter ,and getter do NOT match the JSON tag name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions