• Stars
    star
    251
  • Rank 161,862 (Top 4 %)
  • Language CMake
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

cpp_weekly

The official C++ Weekly Repository. Code samples and notes of future / past episodes will land here at various times. PR's will be accepted in some cases.
C++
680
star
2

cpp_box

C++
294
star
3

6502-cpp

C++
244
star
4

constexpr_all_the_things

HTML
129
star
5

cpp_weekly_game_project

C++
107
star
6

tools

C++
73
star
7

presentations

Presentations by Jason Turner at various conferences
CSS
62
star
8

cons_expr

C++
54
star
9

lambda_coroutines

A lightweight macro-based coroutine / resumable / cooperative multitasking function utility designed for C++14 lambdas.
CMake
37
star
10

nvim-config

Vim Script
22
star
11

cpp_weekly_videos

HTML
22
star
12

learning-rust

Rust
21
star
13

decent_ci

Ruby
18
star
14

lefticus

17
star
15

raycasting

Python
15
star
16

i2c_hacking

C++
14
star
17

ce_rpg_maze_thing

C++
6
star
18

4bitalu

5
star
19

thing

C++
5
star
20

BibleStudy

C++
5
star
21

parser_test

CMake
4
star
22

nu_plugin_calc

CMake
3
star
23

vimconfig

Vim configuration customized for heavy C++ with git and SWIG usage.
3
star
24

xml_thing

C++
3
star
25

WorldBuilder

C++
3
star
26

AnalysisTestSuite

Ruby
3
star
27

ChaiGame

A game engine built around the ChaiScript programming language
C++
3
star
28

consequence

C++
2
star
29

lefticus.github.io

CSS
1
star
30

test_instantiation

A cool test
CMake
1
star
31

decent_ci_energyplus_packages

1
star
32

speedgame2015

ChristianDevs Speedgame 2015
1
star
33

meetup_smallptr_refactor

1
star
34

rad

1
star
35

meetup_refactor_smallpt

C++
1
star
36

llvm-msvc

Shell
1
star
37

exastris

Automatically exported from code.google.com/p/exastris
C++
1
star
38

energyplus_build_results

1
star
39

emptycrategameengine

Automatically exported from code.google.com/p/emptycrategameengine
1
star
40

ChaiScript-BuildResults

1
star
41

OpenStudio-Archive

OpenStudio Test
1
star
42

OpenStudio-SuperBuild

Top level project for building of OpenStudio-Core and OpenStudio projects.
1
star
43

class_0

C++
1
star
44

decent_ci_results

Project to fork to get output gui for decent_ci
HTML
1
star
45

wxMozilla

wxMozilla for historical purposes
1
star
46

EmbeddedScripting

C++
1
star
47

emptycrate

HTML
1
star
48

template_test_repository

This repository is used only for testing of the other templates
CMake
1
star
49

conan-openstudio-ruby

CMake
1
star
50

swigstarterkit

Automatically exported from code.google.com/p/swigstarterkit
C++
1
star
51

OpenStudioLibTest

A project to test using installed OpenStudio Library
CMake
1
star
52

chaidraw

Automatically exported from code.google.com/p/chaidraw
C++
1
star
53

OS_EP_Bestest_Public

Ruby
1
star
54

decent_ci_runner

Ruby
1
star
55

libraycaster

CMake
1
star