--xml转json

XmlDocument doc = new XmlDocument();
doc.LoadXml(result);
string json = Newtonsoft.Json.JsonConvert.SerializeXmlNode(doc);

 

--json 转xml

XmlDocument XmlData = JsonConvert.DeserializeXmlNode(result);

--json对象转json字符串

var a = JSON.stringify(opbranchlist); //json对象转换json字符串

相关文章:

  • 2021-10-11
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-12-07
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案