The serializeJSON and unserializeJSON functions convert between
R objects to JSON data. Instead of using a class based mapping like
toJSON and fromJSON, the serialize functions base the encoding
schema on the storage type, and capture all data and attributes from any object.
Thereby the object can be restored almost perfectly from its JSON representation, but
the resulting JSON output is very verbose. Apart from environments, all standard storage
types are supported.