Hi, author here, i use the 'type' field of the json_value struct, strings, object keys, object values and array members are allocated, i use this info for freeing the memory
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.