JSON to OBJECT
复杂的JSON字符串该怎么转换成一个对象,json如下,该用什么样一个java对象接收,实在没辙了。json如下
{
"columns" : [ "n" ],
"data" : [ [ {
"outgoing_relationships" : "http://192.168.1.28:7474/db/data/node/1/relationships/out",
"data" : {
"id" : "8ad78d54283a211e01283df160542b97",
"createData" : "2010-4-27.14.25. 48. 627000000",
"menberCount" : "4",
"picturePath" : "null",
"deptPath" : "娲涢槼鍒嗗叕鍙?瀹滈槼鍒嗗叕鍙?钀ラ攢閮?涓版潕钀ヤ笟閮?",
"name" : "钃濊。澶╀娇",
"type" : "Team"
},
"traverse" : "http://192.168.1.28:7474/db/data/node/1/traverse/{returnType}",
"all_typed_relationships" : "http://192.168.1.28:7474/db/data/node/1/relationships/all/{-list|&|types}",
"property" : "http://192.168.1.28:7474/db/data/node/1/properties/{key}",
"self" : "http://192.168.1.28:7474/db/data/node/1",
"properties" : "http://192.168.1.28:7474/db/data/node/1/properties",
"outgoing_typed_relationships" : "http://192.168.1.28:7474/db/data/node/1/relationships/out/{-list|&|types}",
"incoming_relationships" : "http://192.168.1.28:7474/db/data/node/1/relationships/in",
"extensions" : {
},
"create_relationship" : "http://192.168.1.28:7474/db/data/node/1/relationships",
"paged_traverse" : "http://192.168.1.28:7474/db/data/node/1/paged/traverse/{returnType}{?pageSize,leaseTime}",
"all_relationships" : "http://192.168.1.28:7474/db/data/node/1/relationships/all",
"incoming_typed_relationships" : "http://192.168.1.28:7474/db/data/node/1/relationships/in/{-list|&|types}"
} ], [ {
"outgoing_relationships" : "http://192.168.1.28:7474/db/data/node/2/relationships/out",
"data" : {
"id" : "8ad78d54283a211e01283e0b566c2e4c",
"createData" : "2010-4-27.14.54. 10. 26000000",
"menberCount" : "0",
"picturePath" : "null",
"deptPath" : "",
"name" : "璁告槍鍘垮ぇ浼楁湇鍔$彮",
"type" : "Team"
},
"traverse" : "http://192.168.1.28:7474/db/data/node/2/traverse/{returnType}",
"all_typed_relationships" : "http://192.168.1.28:7474/db/data/node/2/relationships/all/{-list|&|types}",
"property" : "http://192.168.1.28:7474/db/data/node/2/properties/{key}",
"self" : "http://192.168.1.28:7474/db/data/node/2",
"properties" : "http://192.168.1.28:7474/db/data/node/2/properties",
"outgoing_typed_relationships" : "http://192.168.1.28:7474/db/data/node/2/relationships/out/{-list|&|types}",
"incoming_relationships" : "http://192.168.1.28:7474/db/data/node/2/relationships/in",
"extensions" : {
},
"create_relationship" : "http://192.168.1.28:7474/db/data/node/2/relationships",
"paged_traverse" : "http://192.168.1.28:7474/db/data/node/2/paged/traverse/{returnType}{?pageSize,leaseTime}",
"all_relationships" : "http://192.168.1.28:7474/db/data/node/2/relationships/all",
"incoming_typed_relationships" : "http://192.168.1.28:7474/db/data/node/2/relationships/in/{-list|&|types}"
} ]]
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
楼主用一下FastJson试试。
这个实体类的结构应该怎么样
用Gson写对应实体类