Hi
I am returned JSON from a 3rd party in the following format:
{
"Status": {
"Success": true,
"ErrorMessage": null
},
"Results": [
{
"Address": {
"Lines": [
"The Lodge Cafe",
"149 Piccadilly",
"",
"",
"LONDON",
"",
"W1J 7NT"
]
},
"RawAddress": {
"Organisation": "THE LODGE CAFE",
"Department": "",
"AddressKey": 27233995
}
},
{
"Address": {
"Lines": [
"The Wellington Museum",
"149 Piccadilly",
"",
"",
"LONDON",
"",
"W1J 7NT"
]
},
"RawAddress": {
"Organisation": "THE WELLINGTON MUSEUM",
"Department": "",
"AddressKey": 27233995
}
}
]
}
Whats the best/most efficient way to convert the address to the following format?:
{
"Status": {
"Success": true,
"ErrorMessage": null
},
"Results": [
{
"Address": {
"line1": "The Lodge Cafe",
"line2": "149 Piccadilly",
"line3": "",
"line4": "",
"line5": "LONDON",
"line6": "",
"line7": "W1J 7NT"
},
"RawAddress": {
"Organisation": "THE LODGE CAFE",
"Department": "",
"AddressKey": 27233995
}
},
{
"Address": {
"line1": "The Wellington Museum",
"line2": "149 Piccadilly",
"line3": "",
"line4": "",
"line5": "LONDON",
"line6": "",
"line7": "W1J 7NT"
},
"RawAddress": {
"Organisation": "THE WELLINGTON MUSEUM",
"Department": "",
"AddressKey": 27233995
}
}
]
}
Many thanks
Paul

