Jackson 解析json

发布于 2021-11-26 12:06:38 字数 999 浏览 850 评论 1

有这么一个json串,需要解析成一个对象,该怎么用jackson解析

{"content":[{"CIGNAME":"双喜*红双喜","TQTY":203.07,"BQTY":39.14},{"CIGNAME":"云烟","TQTY":162.58,"BQTY":34.73},{"CIGNAME":"红塔山","TQTY":133.34,"BQTY":28.38},{"CIGNAME":"白沙","TQTY":138.44,"BQTY":25.37},{"CIGNAME":"利群","TQTY":93.1,"BQTY":23.21},{"CIGNAME":"黄山","TQTY":108.75,"BQTY":20.59},{"CIGNAME":"黄金叶","TQTY":94.8,"BQTY":18.51},{"CIGNAME":"七匹狼","TQTY":107.13,"BQTY":17.81},{"CIGNAME":"黄鹤楼","TQTY":77.26,"BQTY":17.14},{"CIGNAME":"芙蓉王","TQTY":70.35,"BQTY":16.25},{"CIGNAME":"南京","TQTY":70.61,"BQTY":15.11},{"CIGNAME":"玉溪","TQTY":66.07,"BQTY":14.88},{"CIGNAME":"娇子","TQTY":77.75,"BQTY":14.68},{"CIGNAME":"红金龙","TQTY":89.92,"BQTY":14.49},{"CIGNAME":"泰山","TQTY":73.22,"BQTY":13.99},{"CIGNAME":"红河","TQTY":68.08,"BQTY":11.03},{"CIGNAME":"黄果树","TQTY":58.81,"BQTY":10.69},{"CIGNAME":"中华","TQTY":45.65,"BQTY":10.07},{"CIGNAME":"钻石","TQTY":41.82,"BQTY":9.51},{"CIGNAME":"红旗渠","TQTY":40.16,"BQTY":8.65}],"count":20,"mobileType":"pad","msg":"查询操作成功","result":"1"}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜无邪 2021-11-27 18:02:14

只是一个配置问题而已

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文