How to serialize null to default value with JsonSerializer

前端 未结 0 819
囚心锁ツ
囚心锁ツ 2020-11-30 13:40

I have a CustomSerializer.class which extends JsonSerializer, I want to serialize the value to a default value if null, but the serialize(String value, JsonGenerator gen, Se

相关标签:
回答
  • 消灭零回复
提交回复
热议问题