下面列出了怎么用org.json.JSONPropertyIgnore的API类实例代码及写法,或者点击链接到github查看源代码。
@JSONPropertyIgnore()
public void setState(final String state) {
this.state = state;
}
@JSONPropertyIgnore()
public boolean isStarted() {
return state.equals(STARTED);
}
@JSONPropertyIgnore()
public boolean isStopped() {
return state.equals(STARTED);
}
@JSONPropertyIgnore
int getIgnoredInt();
@JSONPropertyIgnore
@JSONPropertyName("ShouldBeIgnored")
public boolean getShouldNotBeJSON() { return true; }