alibaba / fastjson

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn
Apache License 2.0
25.74k stars 6.5k forks source link

@JSONType打在枚举上自定义的反序列化生效,但序列化不生效,同样的自定已序列化在 @JSONField却都生效了,为什么? #3197

Open ssssssabaku opened 4 years ago

ssssssabaku commented 4 years ago

实现ObjectDeserializer、ObjectSerializer 的反序列化和序列化,@JSONType写在枚举类上只有反序列化会生效,但是序列化不生效。@JSONField写在字段上都会生效,是为什么?

giottolee commented 1 year ago

我也好奇