-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] 能不能输出属性不要按字母排序 按javabean代码属性顺序 #713
Comments
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.13-SNAPSHOT/ @JSONType(alphabetic=false)
public class SystemUser {
private Integer id;
private String code;
private String password;
} 这个取决于编译器的行为,顺序不确定的 |
我是过滤中得到Bean,有可能是各种形式的bean, 我不可在所有bean上加@jsontype, 能不能加个SerializerFeature参数 |
https://github.com/alibaba/fastjson2/releases/tag/2.0.13 |
能不能输出属性不要按字母排序按 javabean属性顺序
输出{ "id": 1 , code: "10001", password:"123456" } 效果这样
The text was updated successfully, but these errors were encountered: