But how do you know whether a JSON string is a pointer to static data (like in the example with the `main` function) or was dynamically allocated? The same goes for arrays and objects.
See e.g. https://github.com/99991/dynamic/blob/a423a04061ee44bad0720f... for an example (incidentally also a C JSON parser, but with automatic garbage collection).
I kid, I kid...
I am curious about how much this really saves over just using C++ classes and something like the curiously recurring template pattern while turning off runtime type checking.