我有以下由 REST API 调用返回的 JSON。甚至可以将此构造读入 Java 对象吗?这是 JSON 数据:
[
{
"dirName": "/",
"files": [
{
"fileName": "Dog prototype",
"fileId": "0a8cc3ed206",
"revision": {
"revisedBy": "Billy Jean",
"imageId": "80e94300a7286"
},
"creatorName": "Billy Jean",
"disciplineName": "Structural Engineering",
"projectName": "Army Dog Reengineering Project",
"directoryId": "ed8202c43332"
},
{
"fileName": "Office space plan",
"fileId": "e5c4ceb41e9b",
"revision": {
"revisedBy": "Winslow Homer",
"imageId": ""
},
"creatorName": "Winslow Homer",
"disciplineName": "Interior Planning",
"projectName": "Friggle LLC Office Redesign",
"directoryId": "ed85a61202c43332"
}
],
"dirId": "ed85a66f08cd49332"
}
]
Gson 可以使用这样的东西吗?
谢谢