I have following simple xml to json conversion code
XmlDocument xmlDocument=new XmlDocument();
xmlDocument.LoadXml("<Root><Record><Column>1</Column></Record></Root>");
string val=JsonConvert.SerializeXmlNode(xmlDocument,Formatting.None);
xml does get converted but the value contains some characters which json invalid.
value contains following
"{\"Root\":{\"Record\":{\"Column\":\"1\"}}}
I do not want those "\" characters in the converted string. Am I missing something here?