Our great sponsors
- Onboard AI - Learn any GitHub repo in 59 seconds
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- SaaSHub - Software Alternatives and Reviews
-
But for the solution I would propose, I am biased and I would use my library as it is fast, doesn't allocate(small stack usage) unless the user type allocates itself, and requires only a mapping of the JSON members needed to construct your data type(or a third party). Because the mapping is via a specialization, you can stuff it away in it's own TU and not see more than something like MyThing parse_json( string_view );. You can also do things like treat JSON arrays as an iterator or range and just dump them to API calls without having to parse the whole thing first. Like the whole GTA 5 thing, the 100MB JSON document could have been parsed in or under 100ms or so. https://github.com/beached/daw_json_link
-
Magic Enum C++
Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
Link for the curious: https://github.com/Neargye/magic_enum/blob/master/include/magic_enum.hpp
-
Onboard AI
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.