阅读背景:

GSON:不使用全局serializeNulls()序列化一个空字段

来源:互联网 

I'm using Gson with Retrofit, and I have a case where I need to serialize a single null field, but I cannot turn on the global serializeNulls() flag for Gson, because it will break the rest of my code. Does anyone know how to accomplish this? I'm using Gson with Retrofit, and I have a case




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

分享到: