Comparing XML and JSON characteristics as formats for data serialisation within ultra-low power embedded systemsGerrans, 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
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/SummaryJavaScript 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.
Altmetric Deposit Details University Staff: Request a correction | Centaur Editors: Update this record |