json嵌套 转java

[{"id":0,"cont":"日本","pos":"ns","ne":"S-Ns","parent":1,"relate":"ATT","arg":[]},{"id"... [{"id":0,"cont":"日本","pos":"ns","ne":"S-Ns","parent":1,"relate":"ATT","arg":[]},
{"id":1,"cont":"陆上","pos":"nl","ne":"O","parent":2,"relate":"ATT","arg":[]},
{"id":2,"cont":"自卫队","pos":"n","ne":"O","parent":5,"relate":"SBV","arg":[]},{"id":3,"cont":"在","pos":"p","ne":"O","parent":5,"relate":"ADV","arg":[]},

{"id":4,"cont":"北海道","pos":"ns","ne":"S-Ns","parent":3,"relate":"POB","arg":[]},
{"id":5,"cont":"实施","pos":"v","ne":"O","parent":-1,"relate":"HED","arg":[{"id":0,"type":"A0","beg":0,"end":2},{"id":1,"type":"LOC","beg":3,"end":4},{"id":2,"type":"A1","beg":6,"end":7}]}}]
这种json嵌套怎么用json-lib转成java对象?
展开
 我来答
wh猎人
推荐于2016-05-14 · TA获得超过1125个赞
知道大有可为答主
回答量:1157
采纳率:89%
帮助的人:666万
展开全部
用fastjson来解析,其有个工具类JSON可以直接把字符串解析为JSONObject,如果你有对应的java类,还可以直接解析为Java对象
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式