源字符串:
devices A-12345
name: A-1235/1001
id:12345
devices B-12345
name:B-1234
id:23456
转换后:
{
"devices A-12345": {
"name": "A-1235/1001",
"id": "12345"
},
"devices B-12345": {
"name": "B-1234",
"id": "23456"
}
}
因该怎么处理呢