Accessibility navigation


Comparing XML and JSON characteristics as formats for data serialisation within ultra-low power embedded systems

Gerrans, J. and Sherratt, R. S. ORCID: https://orcid.org/0000-0001-7899-4445 (2024) Comparing XML and JSON characteristics as formats for data serialisation within ultra-low power embedded systems. IEEE Embedded Systems Letters. ISSN 1943-0663

[img] Text - Accepted Version
· Restricted to Repository staff only

260kB

It is advisable to refer to the publisher's version if you intend to cite from this work. See Guidance on citing.

To link to this item DOI: 10.1109/LES.2024.3450576

Abstract/Summary

JavaScript Object Notation (JSON) and eXtensible Markup Language (XML) are two data serialisation methods that have been compared over many applications, including client-server transmission, Internet communication, and large-scale data storage. Due to the smaller file size, JSON is faster for transmitting data. However, XML is better for sending complex data structures. This letter compares the two data formats in the context of an embedded system, considering factors such as time, memory, and power to identify efficient characteristics of each method. Programs for each format were written, optimised, and compared for the same dataset. The JSON file was found to be 24.7% smaller than the XML file. This led to a shorter program run-time and less power being consumed when reading and processing the file. However, the program to deserialize the XML file took up 16.7% less flash memory than its JSON counterpart. Overall, JSON was found to be a better choice for systems when collecting large amounts of data, requiring high speed communication, or running for an extended period between battery charges. However, XML is proposed for systems that have limited flash memory.

Item Type:Article
Refereed:Yes
Divisions:Life Sciences > School of Biological Sciences > Biomedical Sciences
Life Sciences > School of Biological Sciences > Department of Bio-Engineering
ID Code:117929
Publisher:IEEE

University Staff: Request a correction | Centaur Editors: Update this record

Page navigation