在线转换地址:https://oktools.net/json2xml
在线实现JSON转XML,XML转JSON,效果如下
测试JSON
···
[
{
"input\_index": 0,
"candidate\_index": 0,
"delivery\_line\_1": "1 N Rosedale St",
"last\_line": "Baltimore MD 21229-3737",
"delivery\_point\_barcode": "212293737013",
"components": {
"primary\_number": "1",
"street\_predirection": "N",
"street\_name": "Rosedale",
"street\_suffix": "St",
"city\_name": "Baltimore",
"state\_abbreviation": "MD",
"zipcode": "21229",
"plus4\_code": "3737",
"delivery\_point": "01",
"delivery\_point\_check\_digit": "3"
},
"metadata": {
"record\_type": "S",
"zip\_type": "Standard",
"county\_fips": "24510",
"county\_name": "Baltimore City",
"carrier\_route": "C047",
"congressional\_district": "07",
"rdi": "Residential",
"elot\_sequence": "0059",
"elot\_sort": "A",
"latitude": 39.28602,
"longitude": -76.6689,
"precision": "Zip9",
"time\_zone": "Eastern",
"utc\_offset": -5,
"dst": true
},
"analysis": {
"dpv\_match\_code": "Y",
"dpv\_footnotes": "AABB",
"dpv\_cmra": "N",
"dpv\_vacant": "N",
"active": "Y"
}
},
{
"input\_index": 0,
"candidate\_index": 1,
"delivery\_line\_1": "1 S Rosedale St",
"last\_line": "Baltimore MD 21229-3739",
"delivery\_point\_barcode": "212293739011",
"components": {
"primary\_number": "1",
"street\_predirection": "S",
"street\_name": "Rosedale",
"street\_suffix": "St",
"city\_name": "Baltimore",
"state\_abbreviation": "MD",
"zipcode": "21229",
"plus4\_code": "3739",
"delivery\_point": "01",
"delivery\_point\_check\_digit": "1"
},
"metadata": {
"record\_type": "S",
"zip\_type": "Standard",
"county\_fips": "24510",
"county\_name": "Baltimore City",
"carrier\_route": "C047",
"congressional\_district": "07",
"rdi": "Residential",
"elot\_sequence": "0064",
"elot\_sort": "A",
"latitude": 39.2858,
"longitude": -76.66889,
"precision": "Zip9",
"time\_zone": "Eastern",
"utc\_offset": -5,
"dst": true
},
"analysis": {
"dpv\_match\_code": "Y",
"dpv\_footnotes": "AABB",
"dpv\_cmra": "N",
"dpv\_vacant": "N",
"active": "Y"
}
}
]
···
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。