'Get the result of simplejson.loads if possible.'

def json(self):

    if ('json' not in self.mimetype):
        raise AttributeError('Not    a    JSON    response')
    try:
        from simplejson import loads
    except ImportError:
        from json import loads
    return loads(self.data)
