Jermaine Hua

Results 45 comments of Jermaine Hua

> ``` > @JSONField(name = "order_no") > private String orderNo; > ``` > > 1.2.70反序列化时 orderNo、order_no 都有值 1.2.83反序列化时 只有 order_no 有值 orderNo为null 不向老版本兼容吗 是这个case。

字符串反序列化转Java对象时,字符串内只带有orderNo的值,但是反序列化后得到的对象属性值却为null。在低版本中是可以反序列化得到对应的值的。

老版本是兼容的,是指这个是一个问题需要修复吗?

@wenshao 新增了这个alternateNames配置后,也没有效果,依旧反序列化出来为null

"{\"first_name\":\"xxxx\"}"; 如果改成"{\"firstName\":\"xxxx\"}"; 好像就不行了

> > 1.2.71修改了这个行为,如果你要兼容,可以配置alternateNames,比如 > > ```java > > @JSONField( name="first_name", alternateNames="firstName") > > private String firstName; > > ``` > > 刚刚测试了一把,可以使用的。加了alternateNames,反序列化没问题 @wy545 尝试过"{"first_name":"xxxx"}"; 改成"{"firstName":"xxxx"}"吗

> > > > 刚试了alternateNames是完全生效的。上面JsonTest示例代码有点问题,setter方法改成public就行了。` public class JsonTest { > > ``` > @JSONField(name = "first_name", alternateNames = "firstName") > private String firstName; > > public String getFirstName() { >...

> Please follow the changes in #10256. Check if fixed or not. @dadadadudu Does this problem still exist?

Recently, we have been improving the content of mesh, and we will give detailed operation documents to explain at that time.

> I want to solve it, please assign it to me. Go ahead!