I have the following JSON returned by a REST API call. Is it even possible to read this construct into a Java object? here is the JSON data:
[
{
"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"
}
]
Can Gson work with something like this?
Thanks