Comparing XML and JSON Characteristics as Formats for Data Serialization Within Ultralow Power Embedded Systems

Javascript object notation (JSON) and extensible markup language (XML) are two data serialization 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 trans...

Celý popis

Uložené v:
Podrobná bibliografia
Vydané v:IEEE embedded systems letters Ročník 16; číslo 4; s. 489 - 492
Hlavní autori: Gerrans, James, Sherratt, R. Simon
Médium: Journal Article
Jazyk:English
Vydavateľské údaje: IEEE 01.12.2024
Predmet:
ISSN:1943-0663, 1943-0671
On-line prístup:Získať plný text
Tagy: Pridať tag
Žiadne tagy, Buďte prvý, kto otaguje tento záznam!
Abstract Javascript object notation (JSON) and extensible markup language (XML) are two data serialization 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, optimized, 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.
AbstractList Javascript object notation (JSON) and extensible markup language (XML) are two data serialization 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, optimized, 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.
Author Gerrans, James
Sherratt, R. Simon
Author_xml – sequence: 1
  givenname: James
  orcidid: 0009-0004-7866-1383
  surname: Gerrans
  fullname: Gerrans, James
  email: james.gerrans@pgr.reading.ac.uk
  organization: School of Biological Sciences, University of Reading, Reading, U.K
– sequence: 2
  givenname: R. Simon
  orcidid: 0000-0001-7899-4445
  surname: Sherratt
  fullname: Sherratt, R. Simon
  email: r.s.sherratt@reading.ac.uk
  organization: School of Biological Sciences, University of Reading, Reading, U.K
BookMark eNpNkEtPwzAQhC1UJErpnQMH_4EUO3YePqLQ8lCgSKGCW-TaG2qUxJVtqSq_nlStEHPZ0ezOHr5LNOptDwhdUzKjlIjbcl7NYhLzGeMJSbL0DI2p4CwiaUZHfz5lF2jq_TcZlPAsYckY2cJ2W-lM_4U_X0ose42fq-UrLjbSSRXAGR-M8lh6vLCuk8Hjxjp8L4PE1bCVrfmRwdgef5iwMT1etcHJ1u7wm92Bw_NuDVqDxtXeB-j8FTpvZOthepoTtFrM34vHqFw-PBV3ZaRimoWoUY2gnIFeC0VIzLI8T0SeaQKMi1yulY65SDMZA1egieaQABkSLoASlmk2QeT4VznrvYOm3jrTSbevKakPzOqBWX1gVp-YDZWbY8UAwL_zNOFMUPYLYUdqUQ
CODEN ESLMAP
Cites_doi 10.1109/csss.2012.297
10.21533/pen.v4i2.57
10.5194/ars-16-109-2018
10.1007/978-3-319-94376-3_11
10.14569/ijacsa.2018.091229
10.3390/su9101910
10.3390/technologies11030075
10.1109/dictap.2012.6215346
ContentType Journal Article
DBID 97E
RIA
RIE
AAYXX
CITATION
DOI 10.1109/LES.2024.3450576
DatabaseName IEEE All-Society Periodicals Package (ASPP) 2005–Present
IEEE All-Society Periodicals Package (ASPP) 1998–Present
IEEE/IET Electronic Library
CrossRef
DatabaseTitle CrossRef
DatabaseTitleList
Database_xml – sequence: 1
  dbid: RIE
  name: IEEE/IET Electronic Library (IEL) (UW System Shared)
  url: https://ieeexplore.ieee.org/
  sourceTypes: Publisher
DeliveryMethod fulltext_linktorsrc
Discipline Engineering
EISSN 1943-0671
EndPage 492
ExternalDocumentID 10_1109_LES_2024_3450576
10654391
Genre orig-research
GrantInformation_xml – fundername: University of Reading Regional Bursary
  funderid: 10.13039/501100000839
GroupedDBID 0R~
29G
4.4
5VS
6IK
97E
AAJGR
AARMG
AASAJ
AAWTH
ABAZT
ABQJQ
ABVLG
ACIWK
AETIX
AGQYO
AGSQL
AHBIQ
AKJIK
AKQYR
ALMA_UNASSIGNED_HOLDINGS
ATWAV
BEFXN
BFFAM
BGNUA
BKEBE
BPEOZ
EBS
EJD
F5P
HZ~
IFIPE
IPLJI
JAVBF
M43
O9-
OCL
PQQKQ
RIA
RIE
RNS
AAYXX
CITATION
ID FETCH-LOGICAL-c217t-fcf9143edb9c00237885987d0e3498abcd24967a2e4ced0d4e5e049649e1037d3
IEDL.DBID RIE
ISICitedReferencesCount 0
ISICitedReferencesURI http://www.webofscience.com/api/gateway?GWVersion=2&SrcApp=Summon&SrcAuth=ProQuest&DestLinkType=CitingArticles&DestApp=WOS_CPL&KeyUT=001373826700034&url=https%3A%2F%2Fcvtisr.summon.serialssolutions.com%2F%23%21%2Fsearch%3Fho%3Df%26include.ft.matches%3Dt%26l%3Dnull%26q%3D
ISSN 1943-0663
IngestDate Sat Nov 29 03:34:59 EST 2025
Wed Aug 27 02:32:59 EDT 2025
IsPeerReviewed true
IsScholarly true
Issue 4
Language English
License https://ieeexplore.ieee.org/Xplorehelp/downloads/license-information/IEEE.html
https://doi.org/10.15223/policy-029
https://doi.org/10.15223/policy-037
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-c217t-fcf9143edb9c00237885987d0e3498abcd24967a2e4ced0d4e5e049649e1037d3
ORCID 0009-0004-7866-1383
0000-0001-7899-4445
PageCount 4
ParticipantIDs crossref_primary_10_1109_LES_2024_3450576
ieee_primary_10654391
PublicationCentury 2000
PublicationDate 2024-12-01
PublicationDateYYYYMMDD 2024-12-01
PublicationDate_xml – month: 12
  year: 2024
  text: 2024-12-01
  day: 01
PublicationDecade 2020
PublicationTitle IEEE embedded systems letters
PublicationTitleAbbrev LES
PublicationYear 2024
Publisher IEEE
Publisher_xml – name: IEEE
References ref13
ref12
ref15
(ref14) 2024
ref11
ref10
Nurseitov (ref4)
Manocha (ref9) 2014; 2
ref8
ref7
Crockford (ref1) 2006
Patrizio (ref2) 2016
ref5
Zunke (ref6) 2014; 3
Zazueta (ref3) 2014
References_xml – ident: ref11
  doi: 10.1109/csss.2012.297
– ident: ref5
  doi: 10.21533/pen.v4i2.57
– volume-title: XML is toast, long live JSON
  year: 2016
  ident: ref2
– ident: ref13
  doi: 10.5194/ars-16-109-2018
– start-page: 157
  volume-title: Proc. CAINE
  ident: ref4
  article-title: Comparison of JSON and XML data interchange formats: A case study
– ident: ref8
  doi: 10.1007/978-3-319-94376-3_11
– ident: ref10
  doi: 10.14569/ijacsa.2018.091229
– ident: ref12
  doi: 10.3390/su9101910
– ident: ref15
  doi: 10.3390/technologies11030075
– volume: 3
  start-page: 257
  issue: 4
  year: 2014
  ident: ref6
  article-title: JSON vs XML: A comparative performance analysis of data exchange formats
  publication-title: Int. J. Comput. Sci. Netw.
– ident: ref7
  doi: 10.1109/dictap.2012.6215346
– volume: 2
  start-page: 553
  issue: 6
  year: 2014
  ident: ref9
  article-title: Performance model of object serialization using GZip compression technique with XML and JSON formatters
  publication-title: Int. J. Sci. Res. Develop.
– volume-title: JSON: The fat free alternative to XML
  year: 2006
  ident: ref1
– volume-title: API data exchange: XML vs. JSON
  year: 2014
  ident: ref3
– volume-title: STEVAL-SMARTAG2: NFC dynamic tag sensor and processing node evaluation board
  year: 2024
  ident: ref14
SSID ssj0000547535
Score 2.3122504
Snippet Javascript object notation (JSON) and extensible markup language (XML) are two data serialization methods that have been compared over many applications,...
SourceID crossref
ieee
SourceType Index Database
Publisher
StartPage 489
SubjectTerms Batteries
Codes
Data (De)-serialization
embedded system
Embedded systems
extensible markup language (XML)
javascript object notation (JSON)
medicine reuse
Memory management
near field communication (NFC)
Power demand
Voltage measurement
XML
Title Comparing XML and JSON Characteristics as Formats for Data Serialization Within Ultralow Power Embedded Systems
URI https://ieeexplore.ieee.org/document/10654391
Volume 16
WOSCitedRecordID wos001373826700034&url=https%3A%2F%2Fcvtisr.summon.serialssolutions.com%2F%23%21%2Fsearch%3Fho%3Df%26include.ft.matches%3Dt%26l%3Dnull%26q%3D
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
journalDatabaseRights – providerCode: PRVIEE
  databaseName: IEEE/IET Electronic Library (IEL) (UW System Shared)
  customDbUrl:
  eissn: 1943-0671
  dateEnd: 99991231
  omitProxy: false
  ssIdentifier: ssj0000547535
  issn: 1943-0663
  databaseCode: RIE
  dateStart: 20090101
  isFulltext: true
  titleUrlDefault: https://ieeexplore.ieee.org/
  providerName: IEEE
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlV09T8MwELWgYoCBzyLKl25gYUhpYyeOR1RaIVRKpVLRLXLsC1SCBLUp_H1sJ0XtwMCUKEqk6M7JvXfnd0fIldIB41InHkXme0wG1LNx3WNIE-230UR112e2zweDaDIRw0qs7rQwiOg2n2HTnrpavs7VwqbKzBdulZBWq77JeViKtX4TKgZ7GOgduCoycxPy6LIs2RI3_e7IkEGfNSmzkDxcC0Mrc1VcWOnt_fOF9sluhR_htnT4AdnA7JDsrHQVPCJ5p5wtmL3C5LEPMtPwMHoaQGe9NzPIOfQcYp2DQa5wJwsJZbKs0mbCy7R4m2YwfrfpkPwbhnakGnQ_EjS_Kw1Vt_M6Gfe6z517r5qr4ClDQAovVakwMAl1IpSN2YYFByLiuoWUiUgmShtOFnLpI1OoW5phgIZIhEygVRVqekxqWZ7hCYEoRapTIf1AcgPFVETbiALT1Bw4U7pBrpdmjj_L9hmxox0tERuXxNYlceWSBqlbC6_cVxr39I_rZ2TbPl7uLTkntWK2wAuypb6K6Xx26RbHD2ueuDk
linkProvider IEEE
linkToHtml http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlV1NT8JAEN0YNVEPfmLEzzl48VCE7pZ2jwYhqAVJgMit2e5OlUSLgaJ_391tMXDw4KlN0zTNzLbzZmbfPEKupfKYL1TsUGSuw4RHHRPXHYY0Vm4NdVS3c2ZDv9sNRiPeK8jqlguDiHbzGVbMqe3lq4mcm1KZ_sINE9Jw1TeMdFZB1_otqWj0ocG3Z_vIzGrk0UVjsspvw2Zfp4Muq1BmQHl9JRAtKavYwNLa--cr7ZPdAkHCXe7yA7KG6SHZWZoreEQmjVxdMH2FUScEkSp47D93obE6nRnEDFoWs85AY1e4F5mAvFxWsDPhZZy9jVMYvpuCyOQbekZUDZofMeofloJi3nmJDFvNQaPtFMoKjtQpSOYkMuEaKKGKuTRRW-fBHg98VUXKeCBiqXRWVveFi0yiqiqGHupUos44Gl6hosdkPZ2keEIgSJCqhAvXE74GYzKgNUSOSaIPPpOqTG4WZo4-8wEakU08qjzSLomMS6LCJWVSMhZeui837ukf16_IVnvQCaPwoft0RrbNo_KdJudkPZvO8YJsyq9sPJte2oXyAzH8u4I
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Comparing+XML+and+JSON+Characteristics+as+Formats+for+Data+Serialization+Within+Ultralow+Power+Embedded+Systems&rft.jtitle=IEEE+embedded+systems+letters&rft.au=Gerrans%2C+James&rft.au=Sherratt%2C+R.+Simon&rft.date=2024-12-01&rft.issn=1943-0663&rft.eissn=1943-0671&rft.volume=16&rft.issue=4&rft.spage=489&rft.epage=492&rft_id=info:doi/10.1109%2FLES.2024.3450576&rft.externalDBID=n%2Fa&rft.externalDocID=10_1109_LES_2024_3450576
thumbnail_l http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=1943-0663&client=summon
thumbnail_m http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=1943-0663&client=summon
thumbnail_s http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=1943-0663&client=summon