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

[需求]注释了@Transient的Field序列化输出,即不写数据库,但输出至前端 #86

Closed
hball opened this issue Sep 25, 2013 · 4 comments

Comments

@hball
Copy link

hball commented Sep 25, 2013

这个功能不一定非常有用,但有的时候,在测试和某些特定情况下,还是会发挥一点作用,如果不是非常麻烦,还是希望能加入下一版的fastJSON。

@wenshao
Copy link
Member

wenshao commented Oct 2, 2014

这个已经支持了吧?

@hball
Copy link
Author

hball commented Oct 3, 2014

没有

何靖波

高铁 notifications@github.com编写:

这个已经支持了吧?


Reply to this email directly or view it on GitHub.

{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/alibaba/fastjson/issues/86#issuecomment-57673891","name":"View Issue"}}

@wenshao
Copy link
Member

wenshao commented Oct 4, 2014

JSON.DEFAULT_GENERATE_FEATURE = SerializerFeature.config(JSON.DEFAULT_GENERATE_FEATURE, SerializerFeature.SkipTransientField, false);
可以通过修改全局缺省配置实现

@wenshao wenshao closed this as completed Oct 4, 2014
@hball
Copy link
Author

hball commented Oct 8, 2014

谢谢您的回复,公司做大不是没有原因的,感谢有您的回复。

何靖波

高铁 notifications@github.com编写:

JSON.DEFAULT_GENERATE_FEATURE = SerializerFeature.config(JSON.DEFAULT_GENERATE_FEATURE, SerializerFeature.SkipTransientField, false);
可以通过修改全局缺省配置实现


Reply to this email directly or view it on GitHub.

{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/alibaba/fastjson/issues/86#issuecomment-57904327","name":"View Issue"}}

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

2 participants