JSON on Mobile: is there an Efficient Parser?
暂无分享,去创建一个
The two largest causes for battery consumption on mobile devices are related with the display and network operations. Since most application need to share data and communicate with remote servers, communications should be as lightweight and efficient as possible. In network communication, serialization plays a central role as the process of converting an object into a stream of bytes. One of the most popular data-interchange format is JSON (JavaScript Object Notation). This paper presents a survey on JSON parsers in mobile scenarios. The aim of the survey is to find the most efficient JSON parser in mobile communications characterised by high transfer rate of small amounts of data. In the performance benchmark we compare the time required to read and write data with several popular JSON parser implementations such as Gson, Jackson, org.json and others. The results of this survey are important for others that need to select an efficient parser for mobile communication.
[1] S. Kami Makki,et al. A comparison of data serialization formats for optimal efficiency on a mobile platform , 2012, ICUIMC.
[2] Kazuaki Maeda,et al. Performance evaluation of object serialization libraries in XML, JSON and binary formats , 2012, 2012 Second International Conference on Digital Information and Communication Technology and it's Applications (DICTAP).
[3] Tim Bray,et al. Internet Engineering Task Force (ietf) the Javascript Object Notation (json) Data Interchange Format , 2022 .