Skip to content

Conversation

@julesfern
Copy link

Jackson supports the following behaviour:

public class Foo {
    @JsonProperty("renamed") private String foo;
    public String getFoo() { return foo; }    
}

When rendering JSON with Jackson, the getFoo method will correctly be interpreted as belonging to the marshalled "renamed" property.

Although support for @JsonProperty and @JsonIgnore were added in #321, the model parser was not respecting renames found at the field level after inspecting a corresponding public getter method. This patch is a fix.

Apologies if any of the code is horribly naive - totally open to receiving feedback and making this PR better.

@fehguy
Copy link
Contributor

fehguy commented Mar 19, 2014

Hi, this was merged in #486

@fehguy fehguy closed this Mar 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants