简体   繁体   中英

Ways to convert JSON to CSV?

Is there any free online tool or way to convert JSON to CSV file up to 70MB. I tried a few software tools, which are allowing me to convert only up to 1 MB. I have a JSON file which is up to 70MB. Please suggest some way to convert it to CSV?

If you have Python and Pandas installed. You can simply use pandas to export the json file to csv.

import pandas as pd
pd.read_json("yourfile.json").to_csv("output.csv")

if you don't have Pandas installed, you can install it using the following command.

$ pip install pandas

The jq tool can probably do what you need.

There is an online version at https://jqplay.org/ as well. I am uncertain as to the limit of the online version but I've used it before with about 8 MiB of data on nearly 600 football players in the answer to this question

We used jsontoexcel to convert our json data to CSV. I think it has a certain limit on the file upload size though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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