这是一个json文件,它是一个嵌套的字典。在内层字典中,"Label"这个键对应的值是一个list,现在这个list保存的时候总是换行,我希望这个list保存在同一行,应该怎么做
这是现在的:
{
"00020_1": {
"number": 50,
"CategoryId": 0,
"Label": [
1,
1,
1,
0,
1
]
},
"00020_2": {
"number": 48,
"CategoryId": 27,
"Label": [
1,
1,
1,
0,
0
]
},
"00020_3": {
"number": 48,
"CategoryId": 22,
"Label": [
1,
0,
0,
0,
0
]
}
}
以下是我希望的:
{
"00020_1": {
"number": 50,
"CategoryId": 0,
"Label": [1, 1, 1, 0, 1]
},
"00020_2": {
"number": 48,
"CategoryId": 27,
"Label": [1, 1, 1, 0, 0]
},
"00020_3": {
"number": 48,
"CategoryId": 22,
"Label": [1, 0, 0, 0, 0]
}
}
相似问题