Summary
Jason introduces his json2cpp tool that converts JSON data into compiled C++ code with zero runtime overhead. Unlike constexpr JSON parsing, this pre-processing approach generates statically compiled, constexpr-capable data structures compatible with the nlohmann JSON API. The tool creates three files: a header, implementation, and compilation firewall, allowing users to make compile-time decisions based on JSON configuration data without any dynamic allocation or parsing overhead at runtime.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[dcl.fct.def.coroutine]95% match -
[expr.await]90% match -
[diff.cpp03.input.output]43% match -
[ifstream]40% match