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

XMLGregorianCalendar 灵活度问题 #782

Closed
sl-wxx opened this issue Aug 18, 2016 · 3 comments
Closed

XMLGregorianCalendar 灵活度问题 #782

sl-wxx opened this issue Aug 18, 2016 · 3 comments
Milestone

Comments

@sl-wxx
Copy link

sl-wxx commented Aug 18, 2016

ObjectSerializer 都是按照类型自动匹配的,这样会在一定程度上不够灵活。比如要匹配javax.xml.datatype.XMLGregorianCalendar的所有实现类型,就有点困难。是否可以考虑增加一个 ObjectSerializer 的子接口,并定义一个返回boolean的方法,可以让用户自己去判断是否匹配。而不是只能根据类型判断。

@wenshao
Copy link
Member

wenshao commented Aug 24, 2016

可以考虑更好的扩展支持,同时也可以做内置支持。如果是内置支持,你期望是怎样的结果?

@wenshao
Copy link
Member

wenshao commented Aug 25, 2016

已经内置支持,和genson以及jackson一样

@wenshao wenshao added this to the 1.2.17 milestone Aug 25, 2016
@wenshao wenshao closed this as completed Sep 6, 2016
@Rocky-Hu
Copy link

Rocky-Hu commented Nov 6, 2017

序列化后的格式呢? 怎么设置?比如说生成json的时候字符串展示 格式为“yyyy-MM-dd”这样

asa1997 pushed a commit to Be-Secure/fastjson that referenced this issue Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants