I have below format JSON file which is having different type of values (string, number, boolean and Null). I want to convert this JSON in xml format for some data processing and after that I want to convert back in same JSON format. Needs to insure that it should not loose any data type. Those numbers is in double quotes then it should be same and if some number is in without double quotes then it should be without double quotes.
{
"Source": "WEB",
"CodePlan": 5,
"PlanSelection": "1",
"PlanAmount": "500.01",
"PlanLimitCount": 31,
"PlanLimitAmount": "3000.01",
"Visible": false,
"Count": null
}
Currently i tried to JsonConvert object to serializeObject and DeserializeObject but it looses numerical value and converts everything in double quotes.
Please suggest appropriate way to handle this.