Open COBSNAN opened 6 years ago
类似WriteNullNumberAsZero,如果Number类型的值是null,用0替换,现在需要替换一个自定义的值吗? 用@JSONField 的serializeUsing 属性来修改序列化方法,但为null的值根本不走到这个方法。
这问题没人解决么?有啥好的别的办法吗?
遇到同样的问题,有解决吗?
类似WriteNullNumberAsZero,如果Number类型的值是null,用0替换,现在需要替换一个自定义的值吗? 用@JSONField 的serializeUsing 属性来修改序列化方法,但为null的值根本不走到这个方法。