数据为空123456789

问题遇到的现象和发生背景

img

问题相关代码,请勿粘贴截图

JSONObject opportunityJson = params.getJSONObject("opportunity");
Opportunity opportunity = JSON.parseObject(opportunityJson.toJSONString(),Opportunity.class);
Long userId = user.getId();
Long opportunityId = opportunity.getId();

运行结果及报错内容

第二步没有拿到数据

我的解答思路和尝试过的方法
我想要达到的结果

先仔细检查你的json数据,粘到文本文档或者word里
搜索opportunity
看到底有没有这个标签
是不是拼写错误
还是你根本误读了文件