BSD Ports

textproc/nlohmann-json 3.12.0 OpenBSD

JSON for modern C++

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel, textproc

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.

In the other systems

SystemPortVersion
OpenBSDtextproc/nlohmann-json3.12.0
FreeBSDdevel/nlohmann-json3.12.0_1
NetBSDtextproc/nlohmann-json3.12.0nb1
DragonFlydevel/nlohmann-json3.11.3
MidnightBSDdevel/nlohmann-json3.11.3_1
HardenedBSDdevel/nlohmann-json3.12.0_1
GhostBSDdevel/nlohmann-json3.12.0_1

Install

Binary package:

pkg_add nlohmann-json

From the ports tree:

cd /usr/ports/textproc/nlohmann-json && make install

Dependencies

Build dependencies 2