这是我的示例json文件内容
{
"responseStatus": "SUCCESS",
"document": {
"id": DOC123,
"version_id": "DOC123_1_0"
},
"binder": {
"nodes": [
{
"properties": {
"document_id__v": 1234,
"name__v": "DocumentA",
"order__v": 1001,
"type__v": "document",
"id": "123ABC",
"minor_version_number__v": 0,
"parent_id__v": "rootNode",
"major_version_number__v": 1
}
},
{
"properties": {
"section_number__v": null,
"name__v": "SectionA",
"order__v": 1002,
"type__v": "section",
"id": "123ABD",
"parent_id__v": "rootNode"
},
"nodes": [
{
"properties": {
"document_id__v": 1235,
"name__v": "DocumentB",
"order__v": 1003,
"type__v": "document",
"id": "123ABE",
"minor_version_number__v": 0,
"parent_id__v": "123ABD",
"major_version_number__v": 1
}
}
]
}
]
}
}
我需要平放的结果
上面的示例json代码只是示例。我们得到n个级别,在每个级别中,我们可能会得到n个文档和节数。我们必须捕获所有级别的文档和节,并需要生成四列展平报告。我在talend和java库中尝试了多种选项。但无法得到正确的解决方案,我的要求。请任何人帮我解决这个问题
暂无答案!
目前还没有任何答案,快来回答吧!