This module is dedicated to implementing the Trustable Software Framework for the Niels Lohmann JSON Library. Initially, it emphasizes ensuring the reliability and correctness of the library's parsing functionality. The Niels Lohmann JSON Library is recognized for its efficient and straightforward approach to JSON parsing, manipulation, and serialization within modern C++ applications, aiming to provide developers with a flexible and robust tool for managing JSON data structures. The framework seeks to enhance these capabilities, aligning them with rigorous software quality standards to ensure dependable JSON processing across diverse applications.
This repository provides the aspired setup for projects using C++ and Bazel as a build system.
| File/Folder | Description |
|---|---|
README.md |
Short description & build instructions |
nlohmann_json/include/ |
Include files for the module |
nlohmann_json/single_include/ |
Single Header Include file for the module |
nlohmann_json/tests/ |
Unit tests (UT) and integration tests (IT) |
docs/ |
Documentation (Doxygen/ reStructuredText) |
.github/workflows/ |
CI/CD pipelines |
.vscode/ |
Recommended VS Code settings |
.devcontainer/S-CORE/ |
Development containter, containing used packages |
.bazelrc, MODULE.bazel, BUILD |
Bazel configuration & settings |
project_config.bzl |
Project-specific metadata for Bazel macros |
LICENSE.md |
Licensing information |
CONTRIBUTION.md |
Contribution guidelines |
To build the module, run:
bazel buildTo run tests, execute:
git submodule init
git submodule update
bazel test //nlohmann_json/tests/src:all_nlohmann_tests --test_output=allTo update the reStructuredText-documentation, follow these steps:
python3 -m venv venv && \
. venv/bin/activate && \
pip install sphinx==8.2.3 sphinx-design sphinx-needs sphinxcontrib.plantuml
cd docs
sphinx-build -b html . _build
python3 -m http.server --directory _buildor run (this will create SCORE-formated site):
bazel run //docs:incremental
python3 -m http.server --directory _buildTo generate LaTeX documentation, use:
apt-get install texlive texlive-latex-extra texlive-fonts-recommended
sphinx-build -b latex . _build/latex
cd _build/latex
pdflatex nlohmannjsonlibrary.texFeel free to copy and use this Markdown format for your documentation purposes!
- Imported as a git subtree in folder nlohmann_json at the top-level of this repository
- Initial version 3.12.0
- All code is contained in this repository, so no special setup is needed unless you want to pull changes from nlohmann_json
- Setup steps to pull changes from nlohmann_json:
git remote add nlohmann_json https://github.com/nlohmann/json.gitgit fetch nlohmann_json- Pull changes:
git subtree pull --prefix=nlohmann_json nlohmann_json versionX