Friday 4 March 2016

How to remove and rename attributes from JSON Response in Restful Web Service


@JsonInclude(Include.NON_DEFAULT)
public class TopicVO {

@JsonProperty("topic_id")
private String tid;
@JsonProperty("name")
private String topic;
private int language;
private String languageName;
private Timestamp lastUpdate;
private String adminid;
@JsonIgnore
private Timestamp doe;
@JsonIgnore
private String description;
private String status;

public String getStatus() {
return status;
}

}

No comments:

Post a Comment