Hi,
I am facing a problem when converting a JSON string to XML as there are white spaces in the names.I am getting the JSON dynamically..so cannot change the element names.Is there a way to remove the whitespaces from the element names or replace the white space with an '_'
Please provide a solution. Sample JSON string provided below :
[{"Team":"Customer Target & Solution",
"SubTeam":"MDS",
"Location":"Hyderabad",
"NBKID":"NBKQY0T",
"AssociateName":"Test1",
"Communication":null,
"Development":"85",
"KT Effort":"7",
"Production Support":"64",
"Project Related Training":"4",
"Release Support":null,
"Admin Support":null,
"Community Service":null,
"Leave":null,
"Non-Project Related KT":null,
"Non-Project Related Training":null,
"Other Activity":null,
"Project Utilization":"100.00",
"Gross Utilization":"100.00",
"id":null},
{"Team":"Customer Target & Solution",
"SubTeam":"TLS",
"Location":"Guragon",
"NBKID":"NBKUVKV",
"AssociateName":"Test2",
"Communication":"11",
"Development":"68",
"KT Effort":null,
"Production Support":"64",
"Project Related Training":null,
"Release Support":null,
"Admin Support":null,
"Community Service":null,
"Leave":"16",
"Non-Project Related KT":null,
"Non-Project Related Training":null,
"Other Activity":null,
"Project Utilization":"99.31",
"Gross Utilization":"99.31",
"id":null}]