C++ JSON libraries
JSON parsers and serializers for C and C++, ranked by GitHub stars
Updated · GitHub stars (stars)
Why these 20
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.
-
1
-
2
cJSON
Ultralightweight JSON parser in ANSI C. [MIT]
13,102 stars 3,572 forkslast push 2026-09-16CMIT
-
3
JsonCpp
A C++ library for interacting with JSON. [MIT]
8,918 stars 2,737 forkslast push 2026-10-26C++NOASSERTION
-
4
UltraJSON
Ultra fast JSON decoder and encoder written in C. [BSD-3-Clause]
4,502 stars 383 forkslast push 2026-11-07C++NOASSERTION
-
5
-
6
yyjson
A high performance JSON library written in ANSI C. [MIT]
3,954 stars 363 forkslast push 2026-11-19CMIT
-
7
Jansson
C library for encoding, decoding and manipulating JSON data. [MIT]
3,379 stars 864 forkslast push 2026-07-09CNOASSERTION
-
8
-
9
Glaze
Extremely fast, in memory, JSON and interface library for modern C++. [MIT]
3,114 stars 297 forkslast push 2026-11-19C++MIT
-
10
YAJL
A fast streaming JSON parsing library in C. [ISC]
2,228 stars 446 forkslast push 2026-08-24CISC
-
11
LIBUCL
zap: - Universal configuration library parser. [BSD-2-Clause]
1,745 stars 168 forkslast push 2026-11-09CBSD-2-Clause
-
12
parson
Parson is a lighweight json library written in C. [MIT]
1,482 stars 348 forkslast push 2026-09-15CMIT
-
13
PicoJSON
A header-file-only, JSON parser serializer in C++. [BSD]
1,163 stars 224 forkslast push 2024-07-13C++BSD-2-Clause
-
14
Sonic-Cpp
A fast JSON serializing & deserializing library, accelerated by SIMD. [Apache-2.0]
980 stars 130 forkslast push 2026-11-13C++Apache-2.0
-
15
jsoncons
A C++ header-only library for JSON and JSON-like binary formats with JSONPointer, JSONPatch, JSONPath and JMESPath. [Boost]
860 stars 221 forkslast push 2026-11-21C++NOASSERTION
-
16
json.h
A simple one header/one source solution to parsing JSON in C and C++. [Unlicense]
845 stars 102 forkslast push 2026-11-09CUnlicense
-
17
json.cpp
a baroque JSON parsing / serialization library for C++. [Apache-2.0]
796 stars 38 forkslast push 2026-04-08C++NOASSERTION
-
18
frozen
JSON parser and generator for C/C++. [GPL & GPL2]
777 stars 168 forkslast push 2026-01-05CNOASSERTION
-
19
taoJSON
Zero-dependency C++ header-only JSON library. [MIT]
684 stars 86 forkslast push 2026-10-15C++MIT
-
20
sajson
Lightweight, extremely high-performance JSON parser for C++11. [MIT]
574 stars 45 forkslast push 2025-04-06C++MIT
References
- fffaraz/awesome-cpp: JSON, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-21 08:06 UTC.
- fffaraz/awesome-cpp (JSON), GitHub community list, 38 tools with a public repository.