You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.alibaba.fastjson.annotation.JSONType#ignores does not work during serializing java beans to JSONs when there are some public boolean isXxx() methods. Test codes are listed below:
@JSONType(ignores = {"xxx", "yyy"})
public class Test {
public boolean isXxx() {
return true;
}
public boolean getYyy() {
return true;
}
public boolean getZzz() {
return true;
}
public static void main(String[] args) {
Object json = JSON.toJSON(new Test());
System.out.println("Expected: {\"zzz\":true}");
System.out.println(" Actual: " + json);
}
}
The text was updated successfully, but these errors were encountered:
com.alibaba.fastjson.annotation.JSONType#ignores does not work during serializing java beans to JSONs when there are some
public boolean isXxx()
methods. Test codes are listed below:The text was updated successfully, but these errors were encountered: