From Jason Turner
Watch on YouTube

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.

Resources

Tags