[@徐雷frank][¥20]在用fastjson将字符串转为JSONObject对象时,double类型被转为BigDecimal类型
int disableDecimalFeature = JSON.DEFAULT_PARSER_FEATURE & ~Feature.UseBigDecimal.getMask();
String str = JSON.toJSON(testEntity).toString();
//JSONObject JB = JSON.parseObject(str);
JSONObject JB = JSON.parseObject(str,JSONObject.class,disableDecimalFeature);
赞0
踩0