Код: Выделить всё
private boolean isCustom;
Код: Выделить всё
public boolean isCustom() {
return isCustom;
}
public void setCustom(boolean isCustom) {
this.isCustom = isCustom;
}
но я хочу, чтобы JSON был {"isCustom":false
поэтому я добавил @JsonProperty :
Код: Выделить всё
@JsonProperty
private boolean isCustom;
Код: Выделить всё
{"isCustom":false,"custom":false}Вопрос: Как в этом случае удалить нежелательное/повторяющееся поле?
Примечание: я использую jackson-all-1.9.11.jar
Подробнее здесь: https://stackoverflow.com/questions/400 ... ds-in-json
Мобильная версия