-
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
fastjson2 序列化兼容问题 #2446
Comments
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.50-SNAPSHOT/ |
wenshao
added a commit
that referenced
this issue
Apr 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请描述您的问题
询问有关本项目的使用和其他方面的相关问题。
fastjson2 序列化 java.time.Period,
Period period = Period.ofDays(2)
如何兼容fastjson,输出为“P2D”这种形式
重现方式:
String json = JSON.toJSONString(period);
问题:fastjson 和 fastjson2输出结果不一致, 如何让fastjson2 与 fastjson输出结果一致 ?
上述序列化方式:fastjson 会调用 Period toString 方法,而 fastjson2 不会
The text was updated successfully, but these errors were encountered: