Algorithm of object serialization based on JSON
Gao Xing
Abstract
Gao Xing
Abstract
Nowadays,XML is mainly applied to data-interchange in current Web application system which is based on Ajax (Asynchronous JavaScript and XML) technology,but as a structured document,XML must be manually resolved between the server-side and the client-side,so that more system resources is consumed,and therefore problems such as weak performance,deficiency of compatibility and lack of sensitivity are caused by using XML. JSON(JavaScript Object Notation) is a lightweight data-interchange format,and it can be easily parsed by browser which supports JavaScript.In this paper,an algorithm of object serialization based on JSON is proposed,by which the JSON grammar is analyzed and the object navigation graph is also established.With this algorithm,the Java objects can be translated into JSON expressions transparently,so as to the client-side can take full advantage of JavaScript engine to parse JSON expressions,thus the problems resulted from XML can be solved effectively.
OpenAlex reports 3 citations for this work. Citation counts describe recorded attention and do not establish research quality.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
Nowadays,XML is mainly applied to data-interchange in current Web application system which is based on Ajax (Asynchronous JavaScript and XML) technology,but as a structured document,XML must be manually resolved between the server-side and the client-side,so that more system resources is consumed,and therefore problems such as weak performance,deficiency of compatibility and lack of sensitivity are caused by using XML. JSON(JavaScript Object Notation) is a lightweight data-interchange format,and it can be easily parsed by browser which supports JavaScript.In this paper,an algorithm of object serialization based on JSON is proposed,by which the JSON grammar is analyzed and the object navigation graph is also established.With this algorithm,the Java objects can be translated into JSON expressions transparently,so as to the client-side can take full advantage of JavaScript engine to parse JSON expressions,thus the problems resulted from XML can be solved effectively.
Key concepts: JSON, Ajax, Computer science, JavaScript, XML, Serialization, Programming language, Parsing