OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

nlohmann-json-3.12.0

JSON for modern C++

Back to search · Project homepage

Description

There are myriads of JSON libraries out there, and each may even have its reason to exist. This class had these design goals: * Intuitive syntax. In languages such as Python, JSON feels like a first class data type. Here all the operator magic of modern C++ was used to achieve the same feeling in code. * Trivial integration. The whole code consists of a single header file json.hpp. That's it. No library, no subproject, no dependencies, no complex build system. The class is written in vanilla C++11. All in all, everything should require no adjustment of your compiler flags or project settings. * Serious testing. The class is heavily unit-tested and covers 100% of the code, including all exceptional behavior. Furthermore, it's checked with Valgrind and the Clang Sanitizers that there are no memory leaks. Google OSS-Fuzz additionally runs fuzz tests against all parsers 24/7, effectively executing billions of tests so far. To maintain high quality, the project is following the Core Infrastructure Initiative (CII) best practices.

Package information

Ports path
textproc/nlohmann-json
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, textproc
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Build

Used by (16 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON