摘要
针对现有洗衣平台不断涌现增多,并存在数据交换的问题,提出了基于JSON数据交换技术的洗衣平台。通过XML与JSON两种不同数据交换格式的对比,发现JSON作为新生格式更适合洗衣平台的数据交换。JSON是JavaScript的一个子集,利用文本和一些大括号表示复杂的对象和映射,该文利用JSON格式支持的数据类型进行了洗衣平台数据传输的设计,使编码简易,开发效率更高,并且易于维护。
Aiming at the increasing number of laundry platforms and the existing problem of data exchange, data exchange technolo-gy of a laundry platform based on JSON is put forward. Through the comparison of XML and JSON which are two different data ex-change formats, it is found that JSON as a new form is more suitable for data exchange of washing platform. JSON is a subset of Ja-va Script, using text and some parentheses to express complex objects and mappings. This article uses the data types supported by the JSON format to design the data transmission of the laundry platform, which makes the coding simple, the development efficient,maintenance easier.
引文
[1]张耘凡,柳平增,马鸿健,等.一种基于JSON的分布式系统架构[J].中国农机化学报,2015(5):255-257,266.
[2]仇小花,秦栓栓,邱果,等.基于WEB开发中的XML与JSON数据传输格式研究[J].信息技术与信息化,2017(4):123-125.
[3]高静,段会川.JSON数据传输效率研究[J].计算机工程与设计,2011(7):2267-2270.