How to achieve SERIALIZATION in Unix , C, C++
Write Objects directly to disk and read back ?
Maybe you will want to try this and tell us what you think:
s11n.net: object serialization/persistence in C++
I have tried JSON-based serialization in the past using json-c. Probably due to restrictions in the C language, it was quite tedious to use and probably that is not what you would expect.