Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解析json报错 #37

Open
luo-zhan opened this issue Feb 26, 2022 · 0 comments
Open

解析json报错 #37

luo-zhan opened this issue Feb 26, 2022 · 0 comments

Comments

@luo-zhan
Copy link

测试json

{
  sales: 2256589.0,          //完成销售额
  valueComparedLastMonth: -922180.0, //同比上月增长额
  rateComparedLastMonth: 29.0,     //同比上月增长率
  notCheckedSales: 256589.0,  //待核对销售额
  errorSales:0.0,              //异常销售额
  debtsSales:0.0              //欠款销售额
}

两个问题:
1.alt+s,粘贴上面json后,先点击format(format成功,而且能自动修复格式)再点击ok,报错
image
设置截图:
image

2.我把注释去掉,直接使用alt+回车,生成代码
上述带小数点的字段生成的是Integer类型,但想生成的是BigDecimal类型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant