@JsonProperty and @JsonIgnore annotations

Report a typo

Given the following class definition, which fields will be present in the JSON?

public class Post {
    @JsonProperty("post_number")
    private final int id;
    @JsonIgnore
    private final Date createDate;
    private final String content;
    private final int likes;
    private final List<String> comments;

    // constructor, getters   
}
Select one or more options from the list
___

Create a free account to access the full topic