Path to this page:
./
textproc/nlohmann-json,
JSON library for Modern C++
Branch: CURRENT,
Version: 3.11.3,
Package name: nlohmann-json-3.11.3,
Maintainer: pkgsrc-usersJSON for Modern C++ is an open-source library consisting of a
C++11-style header-only JSON class.
Its stated goals are:
* Intuitive syntax
* Trivial integration
* Serious testing
Other aspects were not so important to us:
* Memory efficiency
* Speed
Master sites:
Filesize: 7864.946 KB
Version history: (Expand)
- (2024-06-17) Updated to version: nlohmann-json-3.11.3
- (2022-12-29) Package added to pkgsrc.se, version nlohmann-json-3.11.2 (created)
CVS history: (Expand)
2024-08-25 08:19:21 by Thomas Klausner | Files touched by this commit (575) |
Log message:
*: replace CMAKE_ARGS with CMAKE_CONFIGURE_ARGS
|
2024-06-17 11:32:13 by Thomas Klausner | Files touched by this commit (5) | |
Log message:
nlohmann-json: update to 3.11.3.
This release fixes some bugs found in the 3.11.2 release.
|
2023-11-21 18:37:53 by Nia Alarie | Files touched by this commit (3) |
Log message:
nlohmann-json: Optionize tests to greatly cut down on build times.
|
2022-12-28 21:18:21 by Nikita | Files touched by this commit (5) |
Log message:
nlohmann-json: Import as textproc/nlohmann-json version 3.11.2
import from wip, packaged by K.I.A.Derouiche and Adam CiarciĆski.
JSON for Modern C++ is an open-source library consisting of a C++11-style
header-only JSON class.
Its stated goals are:
Intuitive syntax. In languages such as Python, JSON feels like a first class
data type. We used all the operator magic of modern C++ to achieve the same
feeling in your code.
Trivial integration. Our whole code consists of a single header file json.hpp.
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. Our code is heavily unit-tested and covers 100% of the code,
including all exceptional behavior. Furthermore, we 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.
Other aspects were not so important to us:
Memory efficiency. Each JSON object has an overhead of one pointer (the
maximal size of a union) and one enumeration element (1 byte). The default
generalization uses the following C++ data types: std::string for strings,
int64_t, uint64_t or double for numbers, std::map for objects, std::vector
for arrays, and bool for Booleans. However, you can template the generalized
class basic_json to your needs.
Speed. There are certainly faster JSON libraries out there. However, if your
goal is to speed up your development by adding JSON support with a single
header, then this library is the way to go. If you know how to use
a std::vector or std::map, you are already set.
|