繁体   English   中英

"从嵌套的 JSON python 和 UNION 中删除列"

[英]Delete column from nested JSON python and the UNION

我有大约 30 个带有嵌套属性的 JSON 文件,示例如下所示。 我想从文件中删除“问卷”列,然后想合并所有文件。

您能否建议我们如何使用 Python 实现这一目标。

示例文件:

 |-- profileEntity: struct (nullable = true)
 |    |-- consent: string (nullable = true)
 |    |-- documents: array (nullable = true)
 |    |    |-- element: struct (containsNull = true)
 |    |    |    |-- documentProperties: array (nullable = true)
 |    |    |    |    |-- element: struct (containsNull = true)
 |    |    |    |    |    |-- field: string (nullable = true)
 |    |    |    |    |    |-- value: string (nullable = true)
 |    |    |    |-- documentType: string (nullable = true)
 |    |    |    |-- files: array (nullable = true)
 |    |    |    |    |-- element: struct (containsNull = true)
 |    |    |    |    |    |-- edmFileIndex: long (nullable = true)
 |    |    |    |    |    |-- edmFilename: string (nullable = true)
 |    |-- questionnaire: struct (nullable = true)
 |    |    |-- deposit3rdParties: array (nullable = true)
 |    |    |    |-- element: string (containsNull = true)
 |    |    |-- deposit3rdPartiesOther: string (nullable = true)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM