'Any keyword arguments will be passed to the ``serializer``
function.'

def __init__(self, serializer=json.dumps, adapters=(), **kw):

    self.serializer = serializer
    self.kw = kw
    self.components = Components()
    for (type, adapter) in adapters:
        self.add_adapter(type, adapter)
