'Given some data and a format, calls the correct method to deserialize
the data and returns the result.'

def deserialize(self, content, format=u'application/json'):

    method = None
    format = format.split(u';')[0]
    method = self._from_methods.get(format)
    if (method is None):
        raise UnsupportedDeserializationFormat(format)
    if isinstance(content, six.binary_type):
        content = force_text(content)
    return method(content)
