At com. Alibaba. Fastjson. Util. TypeUtils. CastToDouble (TypeUtils. Java: 400)
At com. Alibaba. Fastjson. JSONObject. GetDoubleValue (JSONObject. Java: 298)
Data is of type double, but out type conversion error,
Had to turn the string first, then turn to double
CodePudding user response:
Source code is simple than you think, especially the patch type conversion, I suggest you seeCom. Alibaba. Fastjson. Util. TypeUtils. CastToDouble (TypeUtils. Java: 400)
This piece of code, or at least can see why will quote this wrong
CodePudding user response:
Class use bigdecimal recommended amount