我有一个字符串列表(jsons)。 pprint.pprint(jsondump)
给出:
[
'{"Parent\'s Name:": "xx", "School Award Won:": "xx", "Rank:": "862"}',
'{"Parent\'s Name:": "xx", "School Award Won:": "xx", "Rank:": "872"}',
'{"Parent\'s Name:": "xx", "School Award Won:": "xx", "Rank:": "333"}'
]
我想将它转换为单个json,如:
{
{"Parent\'s Name:": "xx", "School Award Won:": "xx", "Rank:": "862"},
{"Parent\'s Name:": "xx", "School Award Won:": "xx", "Rank:": "872"},
{"Parent\'s Name:": "xx", "School Award Won:": "xx", "Rank:": "333"}
}
我知道这不是有效的json,有人能知道怎么做?
答案 0 :(得分:0)