Class JSON
source code
Codec for JSON
Basic python types (list, string, dictionary, numbers, boolean, None)
are converted directly to the corresponding string representation.
tuples and sets are converted to lists, and str is converted to unicode.
Python objects are represented by:
{
'.class': 'module.classname',
'.version': 'versionstring',
'.state': { object state }
}
where state comes from the object __getstate__, the object __dict__ or
the object __slots__. See the pickle documentation for details.
Python functions are represented by:
{
'.function': 'module.functionname'
}