XML is the main data-interchange format in application system, hut it has some amount of data redundancy and needs to be de-coded between the server-side and the client-side, so that more resources would be consumed. This paper presents a method to transform the XML data to JSON (JavaScript Object Notation) format. By the test experiment, it has proven that the JSON data format can reduce the redundancy of XML data and improve the efficiency of the network transmission.%XML是应用系统中主要的数据交换格式,但XML中存在一些数据冗余,并且需要服务器和客户端进行解码,会占用较多的系统资源.介绍一种转换XML格式的数据为JSON格式的方法.并通过测试实验验证了JSON(JavaScript Object Notation)格式可以减少XML格式的数据冗余,进而使网络传输更有效率.
展开▼