我正在使用 Newtonsoft dll 从 xml 文件生成 json。从下面我将如何将地址详细信息放入列表中(如果示例中有更多)并将它们写入下拉列表我有以下有效的 json(检查 onjsonlint):
{
"?xml": {
"@version": "1.0",
"@encoding": "utf-8"
},
"Root": {
"Information": {
"Error": {
"ErrorNo": "0",
"ErrorMsg": null
},
"Address": {
"Address": [
{
"@AddressID": "14961943",
"@Sequence": "1",
"@Description": "Some Company Name, Some Building, 10 Some Street, Some County, Some City"
}
]
}
}
}
}