Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. C/C++
  3. JeayeSON

JeayeSON

BSD-3-ClauseC++

A header-only, type-safe C++14 JSON library with a consistent stdlib-like API.

GitHubGitHub
135 stars24 forks0 contributors

What is JeayeSON?

JeayeSON is a header-only JSON library for C++14 that provides a type-safe, intuitive interface for reading, writing, and manipulating JSON data. It solves the problem of cumbersome JSON handling in C++ by offering a template-based approach with a consistent API similar to the C++ standard library.

Target Audience

C++ developers working with JSON data in modern C++14 (or later) projects, particularly those who prefer header-only libraries and a stdlib-like interface.

Value Proposition

Developers choose JeayeSON for its simplicity, type safety, and ease of integration—it requires no macros, offers extensive customization, and avoids the complexity of many other C++ JSON libraries.

Overview

A very sane (header only) C++14 JSON library

Use Cases

Best For

  • Embedding JSON parsing in C++ projects without external dependencies
  • Modern C++14 (or later) applications needing type-safe JSON handling
  • Projects requiring a header-only library for easy integration
  • Developers preferring a stdlib-like API for JSON manipulation
  • Applications needing UTF-8 and UTF-16 text encoding support
  • Scenarios where non-validating JSON parsing is acceptable

Not Ideal For

  • Projects requiring robust JSON validation or error handling for malformed input
  • Environments where Boost is not available or adding dependencies is undesirable
  • Legacy codebases stuck with C++ standards older than C++14
  • Teams prioritizing widely adopted libraries with larger ecosystems and community support

Pros & Cons

Pros

Header-Only Integration

Eliminates build steps by allowing direct inclusion of headers, making it easy to embed in any project without complex setup, as highlighted in the README's installation notes.

Modern Type Safety

Leverages C++14 features for type-safe operations, with methods like is<T>() and as<T>() for explicit type checking and casting, ensuring robust JSON manipulation.

Consistent Stdlib API

Provides a familiar interface with functions such as push_back, size, and iterators, mirroring standard library containers to reduce the learning curve for C++ developers.

Extensive Customization

Allows easy type adjustments via config.hpp, enabling changes like using std::unordered_map or 32-bit integers, as described in the Customization section.

Cons

Non-Validating Parser

Expects valid JSON input without built-in validation, meaning malformed data can lead to runtime errors or crashes, as admitted in the README's philosophy.

Boost Dependency

Requires Boost libraries (1.55.0+), adding an external dependency that may complicate projects aiming for minimalism or those without Boost installed.

Configuration Overhead

Needs running a ./configure script to generate config.hpp before use, introducing an extra step that can disrupt seamless integration in automated builds.

Limited to Modern C++

Only supports C++14 and later, excluding projects using older standards like C++11, which limits its adoption in legacy environments.

Frequently Asked Questions

Quick Stats

Stars135
Forks24
Contributors0
Open Issues2
Last commit9 years ago
CreatedSince 2012

Tags

#template#c-plus-plus#data-interchange#c++14#modern-cpp#serialization#type-safe#json#utf-8#json-parser#header-only

Built With

C
C++14
B
Boost

Included in

C/C++70.6k
Auto-fetched 18 hours ago

Related Projects

JSON for Modern C++JSON for Modern C++

JSON for Modern C++

Stars50,198
Forks7,437
Last commit1 day ago
simdjsonsimdjson

Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks

Stars24,035
Forks1,264
Last commit10 days ago
RapidJSONRapidJSON

A fast JSON parser/generator for C++ with both SAX/DOM style API

Stars15,108
Forks3,648
Last commit1 year ago
cJSONcJSON

Ultralightweight JSON parser in ANSI C

Stars12,875
Forks3,496
Last commit3 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub