def METHOD_NAME(self, objectid, name, default=object):
    try:
        json_value = self.states[objectid][name]
    except KeyError:
        if default is not object:
            return defer.succeed(default)
        raise
    return defer.succeed(json.loads(json_value))