在命令行执行这条指令python
python -c "import csv,json;print json.dumps(list(csv.reader(open('csv_file.csv'))))"
确保更换csv_file.csv为你想要转换的csv文件json
csv_file.csv