Performance Evaluation of JSON Libraries in Kotlin Server Environments: Jackson, Gson, and Kotlinx Serialization

  • Achmad Arwan Department of Informatic Engineering, Faculty of Computer Science, Brawijaya University, Malang, Indonesia. https://orcid.org/0000-0002-4146-363X
  • Julia Nur Fajrina Department of Informatic Engineering, Faculty of Computer Science, Brawijaya University, Malang, Indonesia. https://orcid.org/0009-0008-4817-3599
  • Eriq Muhammad Adam Jonemaro Department of Informatic Engineering, Faculty of Computer Science, Brawijaya University https://orcid.org/0000-0001-8315-3210

Abstract

The widespread adoption of Kotlin for server-side development has emphasized the importance of efficient JSON processing. This study aimed to empirically evaluate and compare the performance of three JSON libraries—Jackson, Gson, and KotlinX Serialization—in Kotlin-based server environments. Using structured experiments, the research measured execution time, memory utilization, and CPU consumption during parsing, serialization, and deserialization tasks involving nested JSON data with incremental complexity. Statistical analyses confirmed significant performance differences among libraries. KotlinX Serialization consistently outperformed Jackson and Gson across execution speed, memory efficiency, and CPU utilization, primarily due to its compile-time code generation approach. Jackson showed superior memory management and efficient serialization for smaller datasets, while Gson exhibited lower overall performance. These results offer critical guidance for developers selecting appropriate JSON libraries, highlighting KotlinX Serialization's suitability for high-performance applications. The findings significantly enhance the current understanding of JSON processing efficiency and suggest avenues for further investigation into additional libraries and real-world application contexts.

Downloads

Download data is not yet available.
Published
2026-02-19
How to Cite
Arwan, A., Fajrina, J., & Jonemaro, E. (2026). Performance Evaluation of JSON Libraries in Kotlin Server Environments: Jackson, Gson, and Kotlinx Serialization. ITEGAM-JETIA, 12(57), 718-727. https://doi.org/10.5935/jetia.v12i57.3040
Section
Articles