We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
简要描述您碰到的问题。 我把fastjson从1.x升级到2.x最新版本2.0.39,发现在JSONObject的toJavaObject方法时,boolean类型属性如果时is开头的值丢失。
请填写以下信息:
public class AttributeEntity { private String name; private String type; private boolean isRequired; private boolean isMultivalued; ........... }
public class JsonTest {
public static void main(String[] args) { JSONObject json = new JSONObject(); json.put("name","test"); json.put("isRequired",true); json.put("isMultivalued","true"); AttributeEntity obj = json.toJavaObject(AttributeEntity.class, JSONReader.Feature.SupportSmartMatch); System.out.println(obj.toString()); }
}
The text was updated successfully, but these errors were encountered:
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.40-SNAPSHOT/ 问题已修复,请用2.0.40-SNAPSHOT帮忙验证
Sorry, something went wrong.
https://github.com/alibaba/fastjson2/releases/tag/2.0.40 问题已修复,请用新版本
No branches or pull requests
问题描述
简要描述您碰到的问题。
我把fastjson从1.x升级到2.x最新版本2.0.39,发现在JSONObject的toJavaObject方法时,boolean类型属性如果时is开头的值丢失。
环境信息
请填写以下信息:
重现步骤
public class AttributeEntity {
private String name;
private String type;
private boolean isRequired;
private boolean isMultivalued;
...........
}
public class JsonTest {
}
The text was updated successfully, but these errors were encountered: