Skip to content
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

enum使用@JSONType后,无法反序列化 #1452

Open
codeloam opened this issue Sep 2, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@codeloam
Copy link

commented Sep 2, 2017

根据enum_custom_serialization,在enum上加上了@JSONType(serializeEnumAsJavaBean = true),序列化没问题,但是反序列化的时候提示
com.alibaba.fastjson.JSONException: parse enum AppType error, value : {"type":3}

我是需要自己写反序列化的类么?

@wenshao wenshao added the question label Sep 4, 2017

@wtNewGit

This comment has been minimized.

Copy link

commented Jun 20, 2019

@wenshao 我将你EnumCustomCodecTest.java 这个类运行,是不通过的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.