JSON to OBJECT

发布于 2021-11-20 04:01:51 字数 3711 浏览 733 评论 3

复杂的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 技术交流群。

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

发布评论

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

评论(3

英雄似剑 2021-11-21 20:33:22

楼主用一下FastJson试试。

噩梦成真你也成魔 2021-11-21 14:34:33

这个实体类的结构应该怎么样

悸初 2021-11-21 13:14:22

用Gson写对应实体类

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