最近要整一些报文测试的事情,可当前项目的请求报文格式却不统一,有XML也有JSON,为了一致性,决定统一用JSON格式处理. xmltodict : Makes working with XML feel like you are working with JSON 1.xml转json import xmltodict import json dic = xmltodict.parse("""<mydocument has="an attribute&quo
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Runtime.Serialization.Json; using System.Xml.Serialization; using System.Web.Script.Serialization; namespace Common { public class Jso