You can really only stash strings, boolean, and numbers.
You can store a table as a string in json. When I know the structure
of the table, then I just use pack/unpack to do it. Someone posted
earlier about using msgpack, but I think it has issues with utf-8
and/or unicode. protobufs would work as well.