'Utility function for creating a JSON representation of a MediaUpload.
Args:
strip: array, An array of names of members to not include in the JSON.
Returns:
string, a JSON representation of this instance, suitable to pass to
from_json().'

@util.positional(1)
def _to_json(self, strip=None):

    t = type(self)
    d = copy.copy(self.__dict__)
    if (strip is not None):
        for member in strip:
            del d[member]
    d['_class'] = t.__name__
    d['_module'] = t.__module__
    return json.dumps(d)
