转换JSON到CSV嗨,我下载了一个csvkit到我的MacBook一切按照教程enter link description here但进行得很顺利,当我试图用这个命令错误而使用csvkit
in2csv customers-page-1.json > customers-page-1.csv
这是对JSON文件转换错误
When converting a JSON document with a top-level dictionary element, a key must be specified.
我不知道该怎么放或者把钥匙被错误作为spcified我的继承人JSON文件
{
"page":1,
"pages":132,
"count":5945,
"items":[
{
"id":74798241,
"firstName":"Edyth",
"lastName":"U.",
"fullName":"Edyth U.",
"photoUrl":null,
"photoType":null,
"gender":"unknown",
"age":null,
"organization":null,
"jobTitle":null,
"location":null,
"createdAt":"2016-03-02T04:26:52Z",
"modifiedAt":"2016-03-02T04:26:52Z"
}]}
你检查[这](https://开头的github .com/wireservice/csvkit/issues/361)已经? (关于你看到的错误) – jDo
是的,我做了它并没有说任何在那里把关键 –
顺便说一句,我可以很容易地转换它与在线JSON转换器,但我有一千个JSON文件,它需要我永远转换如果我必须这样做 –