JSON.NET and Replacing @ Sign in XML to JSON converstion
问题 The JSON.NET framework can convert XML to JSON, but it uses the @ sign in the JSON as the attribute. I would rather remove this before sending it to the view. What would be the best approach for this? I know I can do a straight up replace, but an @ character may be relevant somewhere and shouldn't be replaced. Is there a Regex for this? public ActionResult Layout() { var xml = new XmlDocument(); xml.XmlResolver = null; xml.Load(Server.MapPath("~/App_Data/Navigation.xml")); return Content