Font Size: a A A

Research And Implementaion Of Communication System Based On JSON

Posted on:2014-02-02Degree:MasterType:Thesis
Country:ChinaCandidate:S W XingFull Text:PDF
GTID:2248330398979412Subject:Computer technology
Abstract/Summary:PDF Full Text Request
XML(Extensible Markup Language) not only overcomes some of the shortcomings of the traditional data exchange technology, but also provides an open, efficient and secure data exchange standard. Using structured data exchange language XML, the developers can get rid of data representations and commercial specificatn.So they can focus on the work of data processing. XML received wide acclaim and became the new data exchange standard once it appeared. Because XML file is parsed by DOM tree, XML is low efficiency, analytical speed, high memory consumption, and almost impossible for large files. People began to seek alternatives to XML. JSON (JavaScript Object Notation) is a lightweight data-interchange format which has lighter, more user-friendly Web client format. It is easy for humans to read and write. It is easy for machines to parse and generate. These properties make JSON an ideal data-interchange language. In this paper, we study JSON taking the opportunity of developing campus information release platform.(1) Firstly, the JSON serialization mechanisms of the different development language and the status of domestic and overseas development of JSON are analyzed. We carried on a further research on the JSON serialization mechanisms of C#, java, php and asp.net. Then, XML is performed to compare with JSON in aspect of design ideas, data type and object format strategies.(2) In the basis of Ramon Lawrence’ study on XML, we provide a formula for estimating the space efficiency of JSON. The data transmission, data transfer time and the client resolver efficiency of XML and JSON are compared. Experimental result shows that the data transmission efficiency of JSON is better than XML.(3) Finally, a communication system is designed and realized based on JSON and Android. The client contains all the modules of the original WEB system. The client is characterized of nice interface, high data transmission efficiency, better user experience.
Keywords/Search Tags:JSON, XML, Serialization, Data-interchange, Information interaction
PDF Full Text Request
Related items