-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
1.2.47 当@JSONType 中指定了typeKey, 反序列化时会丢失此typeKey之前的所有字段 #1941
Comments
Same here for android |
这个问题并没有得到解决,1.2.58依然会有这样的问题 |
android 1.1.71并没有解决该问题 |
1.2.72 same |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
若json为 "{"type":"floorV2","templateId":"x123","name":"floorname2"}"时,反序列化完全正常
若json为"{"name":"floorname2","type":"floorV2","templateId":"x123"}";反序列化后,name字段为null
找到个类似的问题 #291
若我在FloorV2类中 设置@jsontype(... orders={"type","name","templateId"}) 或 设置type字段@JSONField(ordinal = -1)
想在反序列化的时候把type字段放在首位, 但是报如下错误:
The text was updated successfully, but these errors were encountered: