阅读背景:

JSON:使Jackson只显示为对象明确设置的序列化字段

来源:互联网 

I have a Java Object that I want to serialise to JSON. However, before I do that, I set some properties on fields for that object. Now I want to serialise this object to JSON. How can I serialise only the fields that were explicitly assigned a value and basically exclude all other fields?I have a Java Object that I want to serialise t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: