What do you mean by the best ? fastest ? memory optimized ? most compact ? simplest ?I think it depends on your context. I guess JSON serialization or pickling would be good enough for the vast majority of use cases.