What is the best approach to archive/serialize generic structs?
I cannot use NSCoding (since structs are not NSObjects).
I can translate my structs to some other representation (such as JSON strings),
but I'm struggling to unarchive/deserialize the structs back from the JSON
if the structs are generic.
More precisely, I'm wrestling with the type system to allow me to express
this in an elegant, maintainable way.