A Performance Analysis of Native JSON Parsers in Java, Python, MS.NET Core, JavaScript, and PHP

JavaScript Object Notation (JSON) has gained prominence over Extensible Markup Language (XML) due to its lightweight and flexible nature. This has also made it a first-class citizen when it comes to choose a data interchange format. All major programming platforms provide native libraries to parse J...

Full description

Saved in:
Bibliographic Details
Published inInternational Conference on Network and Service Management (Print) pp. 1 - 5
Main Author Dhalla, Hardeep Kaur
Format Conference Proceeding
LanguageEnglish
Published IFIP 02.11.2020
Subjects
Online AccessGet full text
ISSN2165-963X
DOI10.23919/CNSM50824.2020.9269101

Cover

Abstract JavaScript Object Notation (JSON) has gained prominence over Extensible Markup Language (XML) due to its lightweight and flexible nature. This has also made it a first-class citizen when it comes to choose a data interchange format. All major programming platforms provide native libraries to parse JSON formatted data, but the performance of JSON parsers varies with their implementation. For further processing and analysis of semi-structured JSON data, it is first parsed which is expensive. In this research paper, performance analysis of JSON parsers in the native environment of 5 different programming languages has been done in terms of parsing speed and resource consumption. The experiment data is created using an algorithm written in Java that generates 10 different JSON files with an increasing number of key-value pairs at each level of JSON nesting. The native performance monitor on Windows 10 operating system is used to monitor and measure memory and CPU usage of the running processes. The output of data collector set is saved in the comma separated format for further analysis. The experimental results are discussed and shared at the end.
AbstractList JavaScript Object Notation (JSON) has gained prominence over Extensible Markup Language (XML) due to its lightweight and flexible nature. This has also made it a first-class citizen when it comes to choose a data interchange format. All major programming platforms provide native libraries to parse JSON formatted data, but the performance of JSON parsers varies with their implementation. For further processing and analysis of semi-structured JSON data, it is first parsed which is expensive. In this research paper, performance analysis of JSON parsers in the native environment of 5 different programming languages has been done in terms of parsing speed and resource consumption. The experiment data is created using an algorithm written in Java that generates 10 different JSON files with an increasing number of key-value pairs at each level of JSON nesting. The native performance monitor on Windows 10 operating system is used to monitor and measure memory and CPU usage of the running processes. The output of data collector set is saved in the comma separated format for further analysis. The experimental results are discussed and shared at the end.
Author Dhalla, Hardeep Kaur
Author_xml – sequence: 1
  givenname: Hardeep Kaur
  surname: Dhalla
  fullname: Dhalla, Hardeep Kaur
  email: hdhalla@uwsp.edu
  organization: University of Wisconsin-Stevens Point,Department of Computing and New Media Technologies,Stevens Point,USA
BookMark eNotkMtKw0AYRkdRsNY-gQvnAZI4l2QuyxKqtbRpIBXclX-SCUbaSZkJhby9Rbs4fIsD3-I8ojvXO4vQCyUJ45rq17yoNhlRLE0YYSTRTGhK6A2aaam4JpxKceEWTRgVWawF_3pAsxB-CLk4pbTKJmg_x6X1be-P4GqL5w4OY-gC7ltcwNCdLV5V2wKX4IP1AXcOr-AMES7H4bt3Ed5USbHY4bz3NvpTVe270xBhcA0ul-UTum_hEOzsulP0-bbY5ct4vX3_yOfruKNCDLFSTctpnUkgGShoDDfMUmg0paDbjFnLlJSZaQ3QWshUM8OkYIZKlZpUEj5Fz_-_nbV2f_LdEfy4vybhv2fHVUg
ContentType Conference Proceeding
DBID 6IE
6IL
CBEJK
RIE
RIL
DOI 10.23919/CNSM50824.2020.9269101
DatabaseName IEEE Electronic Library (IEL) Conference Proceedings
IEEE Xplore POP ALL
IEEE Xplore All Conference Proceedings
IEEE Xplore digital library
IEEE Proceedings Order Plans (POP All) 1998-Present
DatabaseTitleList
Database_xml – sequence: 1
  dbid: RIE
  name: IEEE Electronic Library (IEL)
  url: https://proxy.k.utb.cz/login?url=https://ieeexplore.ieee.org/
  sourceTypes: Publisher
DeliveryMethod fulltext_linktorsrc
Discipline Engineering
EISBN 9783903176317
3903176311
EISSN 2165-963X
EndPage 5
ExternalDocumentID 9269101
Genre orig-research
GroupedDBID 6IE
6IF
6IK
6IL
6IN
AAJGR
AAWTH
ABLEC
ADZIZ
ALMA_UNASSIGNED_HOLDINGS
BEFXN
BFFAM
BGNUA
BKEBE
BPEOZ
CBEJK
CHZPO
IEGSK
IPLJI
OCL
RIE
RIL
ID FETCH-LOGICAL-i166t-88df31c57a05a8adb3b2e1ad911a9f52ee28775bfba1c67492b2762b1784b4703
IEDL.DBID RIE
IngestDate Wed Aug 27 02:29:33 EDT 2025
IsPeerReviewed false
IsScholarly false
Language English
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-i166t-88df31c57a05a8adb3b2e1ad911a9f52ee28775bfba1c67492b2762b1784b4703
PageCount 5
ParticipantIDs ieee_primary_9269101
PublicationCentury 2000
PublicationDate 2020-Nov.-2
PublicationDateYYYYMMDD 2020-11-02
PublicationDate_xml – month: 11
  year: 2020
  text: 2020-Nov.-2
  day: 02
PublicationDecade 2020
PublicationTitle International Conference on Network and Service Management (Print)
PublicationTitleAbbrev CNSM
PublicationYear 2020
Publisher IFIP
Publisher_xml – name: IFIP
SSID ssj0003188985
Score 1.8142492
Snippet JavaScript Object Notation (JSON) has gained prominence over Extensible Markup Language (XML) due to its lightweight and flexible nature. This has also made it...
SourceID ieee
SourceType Publisher
StartPage 1
SubjectTerms Arrays
Java
JSON
Libraries
Memory management
Parsers
Parsing
Performance analysis
Python
XML
Title A Performance Analysis of Native JSON Parsers in Java, Python, MS.NET Core, JavaScript, and PHP
URI https://ieeexplore.ieee.org/document/9269101
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV1La8MwDDZdT9tlj3bsjQ87JmnixIl9HKWlFJIF0kJvxY4dKIN0jHSw_frJTh_b2GG34BAsrEiyZH2fEXpUIF3kgyFFxgojVUmXqZC6NCGM-mWV-JZ4Ps3iyTyaLuiig5w9FkZrbZvPtGce7Vm-WpcbUyobcBJDdINc5yhhcYvV2tdT4N9knNG2hYuEPOCDYVaksP8gpnRCfG_79Y9rVGwUGZ-idDd_2zzy4m0a6ZWfv6gZ_yvgGeof8Ho430eic9TR9QU6-UY12EPLJ5wfMAJ4x0WC1xXOLPc3nhbPGc4hz4UNIV7VeCrehYPzD0Mu4OC08LLRDA9BIse-Kqy7cbCoFc4neR_Nx6PZcOJuL1dwV0EcNy5jqgqDkibCp4IJJUNJdCAUOD_BK0q0hlwqobKSIijjJOJEEnCcMkhYJCPwE5eoW69rfYUw-IGQx2DcRBhYLxOSGlJ40EasKyL5NeqZpVq-tvwZy-0q3fw9fIuOjbos3o_coW7zttH3EPgb-WA1_gUO3Kk8
linkProvider IEEE
linkToHtml http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV3NS8MwFA9jHtSLH5v4bQ4e265NkzY9ytiYc62FbrBbSdoUhtCJbIL-9b5kXyoevJWUwiOv7zPv9wtC9yVIR10wJKqtkJaVtHnpM5uFhDO3qELXEM_HSTCY0OGUTRvI2mJhlFJm-Ew5-tGc5ZfzYqlbZZ2IBBDdoNbZY5RStkJrbTsq8HfyiLPVEBfxIy_qdJMshgyE6OYJcZ319z8uUjFxpH-E4o0Eq_GRF2e5kE7x-Yuc8b8iHqP2DrGH020sOkENVZ-iw29kgy2UP-B0hxLAGzYSPK9wYti_8TB7TnAKlS6khHhW46F4FxZOPzS9gIXjzEl6Y9wFiSzzKjMOx8KiLnE6SNto0u-NuwN7fb2CPfOCYGFzXla-V7BQuExwUUpfEuWJEtyfiCpGlIJqKmSyksIrgpBGRBJwndILOZUUPMUZatbzWp0jDJ7AjwIwbyI0sJcLyTQtPGgjUBWR0QVq6a3KX1cMGvl6ly7_Xr5D-4NxPMpHj8nTFTrQqjPoP3KNmou3pbqBNGAhb432vwAf_KyJ
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%3Abook&rft.genre=proceeding&rft.title=International+Conference+on+Network+and+Service+Management+%28Print%29&rft.atitle=A+Performance+Analysis+of+Native+JSON+Parsers+in+Java%2C+Python%2C+MS.NET+Core%2C+JavaScript%2C+and+PHP&rft.au=Dhalla%2C+Hardeep+Kaur&rft.date=2020-11-02&rft.pub=IFIP&rft.eissn=2165-963X&rft.spage=1&rft.epage=5&rft_id=info:doi/10.23919%2FCNSM50824.2020.9269101&rft.externalDocID=9269101