Hi all.
Suppose I have the following JSON Object:
"WorkPhone": {
"Phone": {
"FixedPhone": "98221234",
"Fax": {
"CountryCode": "61",
"AreaCode": "",
"text": ""
},
"Mobile": ""
}
}
How can I manipulate the 'FixedPhone' object to look more like the 'Fax' object in Javascript / JQuery? That is:
- Remove the "98221234" string
- Append the CountryCode and AreaCode properties (value of "" allowable)
- Set 'text' property of the value stored as the string value of FixedPhone ("98221234")
Help is greatly appreciated.
Many thanks