def __init__(self, result_json):
        logging.info ("result POST data: %s" % result_json)
        result_data = jsonlib.loads(result_json)
        result_dict = result_data['result']

        for opt in self.options_array:
            if result_dict.get(opt, False):
                setattr(self, '_%s' % opt, result_dict[opt])
dataset/ETHPy150Open sahana/eden/modules/tropo.py/Result.__init__/original