Font Size: a A A

Research On JSON Serialization Mechanism And Transmission Efficiency

Posted on:2012-11-16Degree:MasterType:Thesis
Country:ChinaCandidate:J GaoFull Text:PDF
GTID:2178330332489754Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
On the basic of know the research status of JSON serialization mechanism and data transmission efficiency well, to choose a data transmission format which is more appropriate and the data transmission efficiency which is more faster in the development of application program, and to provide a more effective reference for the choose of data transmission formats. So the data transmission efficiency of JSON and XML is studied.Firstly, the paper compares the data transfer. Based on analysis the grammatical structure of XML and FSV, we put forward the formulas of JSON data transfer cost innovativly, and put Northwind and other large database as the statistical data set to calculate the data transmission cost of JSON, XML, FSV. Experimental results show that, the data transfer overhead of JSON are less than FSV and XML .Then, the data transfer time of JSON, XML, FSV is compared. We build a environment and compare the data transfer time of JSON,XMLand FSV, experimental data show that the data transmission time of JSON is shorter than XML format clearly, while slightly shorter than FSV in data transmission time. Comparison of the data transmission time proved that the data transmission efficiency of JSON is more efficient than other data transmission formats once again.Finally, though a designed test program, the client deserialization efficiency of the JSON and XML is tested. The results show that the client deserialization efficiency of JSON is more efficient than XML.Through the comparison of the data transmission overhead, data transfer time and the efficiency of client-side deserialization, experimental data shows that the data transmission efficiency of JSON is superior than other data transmission formats, which provide an optimized reference program on data transmission formats in lightweight applications.On the basic of research above, in order to solute the problems of mobile applications that bandwidth limitations, slow response page, duplication of data downloads and other problems effectively, we put forward a mobile development program based on JSON serialization mechanism by combining the advantages of JSON serialization mechanism and the function of propose modle and AJAX engine. The basic idea of the program is: Through the double optimization of propose modle and the AJAX engine, the users request which do not need server processe to be dealed with in the"transfer station", thus greatly reducing the burden on the server; the use of JSON serialization reduces the rate of return pages in client and improve the user experience effectively. Experimental results show that the scheme can reduce the data transmission for mobile applications in the process of network traffic and the page response time.
Keywords/Search Tags:JSON, serialization, XML, mobile application development, propose modle, AJAX technology
PDF Full Text Request
Related items