简体   繁体   English

在Azure中/将JSON转换为CSV

[英]Convert JSON to CSV in/for Azure

I have JSON files from Google Analytics and like to have them in CSV so they can used by Excel or Power BI. 我有来自Google Analytics(分析)的JSON文件,并且希望将它们保存为CSV格式,以便Excel或Power BI可以使用它们。

I´ve stored them in Azure Blob Storage and DocumentDB. 我已经将它们存储在Azure Blob存储和DocumentDB中。 Is there a possibility to do this transformation in DocumentDB with the Query Explorer or the DocumentDB Data Migration Tool and a stored procedure? 是否可以使用查询资源管理器或DocumentDB数据迁移工具和存储过程在DocumentDB中进行此转换? Or are there any other suggestions? 还是有其他建议?

I´ve stored them in Azure Blob Storage and DocumentDB. 我已经将它们存储在Azure Blob存储和DocumentDB中。 Is there a possibility to do this transformation in DocumentDB with the Query Explorer or the DocumentDB Data Migration Tool and a stored procedure? 是否可以使用查询资源管理器或DocumentDB数据迁移工具和存储过程在DocumentDB中进行此转换?

As I known, DocumentDB Query Explorer, Store Procedures, User Defined Functions could not transfer JSON to CSV. 众所周知,DocumentDB查询资源管理器,存储过程,用户定义函数无法将JSON转换为CSV。 And the DocumentDB Data Migration Tool could only export your source to a JSON file, you could refer to this tutorial . 而且DocumentDB数据迁移工具只能将您的源导出到JSON文件,您可以参考本教程

I have JSON files from Google Analytics and like to have them in CSV so they can used by Excel or Power BI. 我有来自Google Analytics(分析)的JSON文件,并且希望将它们保存为CSV格式,以便Excel或Power BI可以使用它们。

Based on my understanding, you could follow this tutorial to get data from Azure DocumentDB for Power BI. 根据我的理解,您可以按照本教程从用于Power BI的Azure DocumentDB中获取数据。 For transfer JSON to CSV, I assumed that you could try to write your transformation logic based on your development language. 为了将JSON转换为CSV,我假设您可以尝试根据您的开发语言编写转换逻辑。 Or you could leverage Azure Data Factory to move your JSON files from Blob or DocumentDB to Azure Table Storage, then you could use Microsoft Azure Storage Explorer to manage your table and export your records to CSV as follows: 或者,您可以利用Azure数据工厂将JSON文件从Blob或DocumentDB移至Azure表存储,然后可以使用Microsoft Azure存储资源管理管理表并将记录导出为CSV,如下所示:

在此处输入图片说明

在此处输入图片说明

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

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