Here is an example of how to use structpack to serialize and deserialize a class: Anything that is not a basic type must be defined with a typedef array. You can also define your own types with a ...
Why this library? What's the difference between using this library instead of JSON.parse and JSON.stringify? For simple cases, you don't need this library of course, you can just use JSON.parse and ...