GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lefticus/json2cpp: Compiles JSON into static constexpr C++ data structures with nlohmann::json API

BranchesTags
Open more actions menu

Latest commit

 

History

91 Commits
91 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
cmake
cmake
 
 
examples
examples
 
 
fuzz_test
fuzz_test
 
 
include/json2cpp
include/json2cpp
 
 
src
src
 
 
test
test
 
 
.clang-format
.clang-format
 
 
.clang-tidy
.clang-tidy
 
 
.cmake-format.yaml
.cmake-format.yaml
 
 
.gitignore
.gitignore
 
 
.gitlab-ci.yml
.gitlab-ci.yml
 
 
.lgtm.yml
.lgtm.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
Dependencies.cmake
Dependencies.cmake
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
ProjectOptions.cmake
ProjectOptions.cmake
 
 
README.md
README.md
 
 

Repository files navigation

json2cpp

CI codecov Language grade: C++

json2cpp compiles a json file into static constexpr data structures that can be used at compile time or runtime.

Features

  • Literally 0 runtime overhead for loading the statically compiled JSON resource
  • Fully constexpr capable if you want to make compile-time decisions based on the JSON resource file
  • A .cpp firewall file is provided for you, if you have a large resource and don't want to pay the cost of compiling it more than once (but for normal size files it is VERY fast to compile, they are just data structures)
  • nlohmann::json compatible API (should be a drop-in replacement, some features might still be missing)
  • valijson adapter file provided

See the test folder for examples for building resources, using the valijson adapter, constexpr usage of resources, and firewalled usage of resources.

About

Compiles JSON into static constexpr C++ data structures with nlohmann::json API

Topics

cppcpp17jsonjson-schema

Resources

Readme
MIT license
Activity

Stars

293 stars

Watchers

12 watching

Forks

25 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Generated from cpp-best-practices/gui_starter_template
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.