我有一个json文件来存储我的数据,我将其转换为CSV来编辑我的数据。但当我再次将它转换为json时,一切都没有被构建。如何将我的csv转换为与旧json相同的结构。
JSON
{
"product": [
{
"id": "item0001",
"category": "12",
"name": "Name1",
"tag": "tag1",
"more": [
{
"id": "1",
"name": "AL"
},
{
"id": "1",
"name": "BS"
}
],
"active": true
},
{
"id": "item0002",
"categoryId": "13",
"name": "Name2",
"tag": "tag2",
"size": "2",
"more": [
{
"id": "2",
"name": "DL"
},
{
"id": "2",
"name": "AS"
}
],
"active": true
}
]
}
CSV
ID,的categoryId,名称,快捷,更/ 0 / optionId,更/ 0 /价格,更/ 1 / optionId,更/ 1 /价格,活性,更/ 2 / optionId,更/ 2 /价格,spanSize item0001,ab92d2c6-010e-4182-844d-65050e746617,NAME1 Shortcut1,1,60,1,70,TRUE ,,, item0002,ab92d2c6-010e-4182-844d-65050e746617,NAME2 Shortcut2,2,60,2,70,TRUE,2,2,4-