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
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.
Altmetric Badge
| Item Type | Article |
| URI | https://reading-clone.eprints-hosting.org/id/eprint/117929 |
| Identification Number/DOI | 10.1109/LES.2024.3450576 |
| Refereed | Yes |
| Divisions | Life Sciences > School of Biological Sciences > Biomedical Sciences Life Sciences > School of Biological Sciences > Department of Bio-Engineering |
| Publisher | IEEE |
| Download/View statistics | View download statistics for this item |
University Staff: Request a correction | Centaur Editors: Update this record
Download
Download