如何通过使用GWT AutoBean反序列化BigDecimal? [英] How to deserialize BigDecimal by using GWT AutoBean?
问题描述
我有来自服务器的json,代表pojos.当我使用AutoBean反序列化为json时,有些方法有些无效!我发现那些不能反序列化的具有BigDecimal getter/setter.
I have json coming from server and representing pojos. When i deserialize to json using AutoBean some works some dont! I figure out that those which cant be deserialize has BigDecimal getters/setters.
错误:
TypeError:无法读取未定义的属性"length" 在java_math_BigDecimal_ $ initFrom__Ljava_math_BigDecimal_2Ljava_lang_String_2
TypeError: Cannot read property 'length' of undefined at java_math_BigDecimal_$initFrom__Ljava_math_BigDecimal_2Ljava_lang_String_2
在使用AutoBean反序列化时如何将BigDecimal转换为GWT?
How to handle BigDecimal into GWT while deserializing with AutoBean?
ps:
嵌套的问题是这个推荐答案
AutoBean期望 AutoBean expects 我们在 http://gwt-code-reviews.appspot.com/1601805上进行了讨论. / We discussed it at http://gwt-code-reviews.appspot.com/1601805/ 这篇关于如何通过使用GWT AutoBean反序列化BigDecimal?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!BigDecimal
作为JSON有效负载中的字符串.BigDecimal
as strings in the JSON payload.
尽管可以提出问题,但决定不是不",而是不是现在".
Feel free to file an issue though, the decision was not a "no" but rather a "not now".