def get_value(self, json_serializable=False):
        """ Retrieve the value
        """
        if json_serializable:
            try:
                json.dumps(self.value)
                return self.value
            except __HOLE__ as e:
                try:
                    if type(self.value) == list: # for iterables
                        return [{
                            "value": v["value"].json(),
                            "tags": v["tags"],
                        } for v in self.value]
                    else: # for values explicitly defining json method, e.g. parameters
                        return self.value.json()
                except AttributeError:
                    try: # for numpy arrays
                        return self.value.tolist()
                    except AttributeError:
                        raise e
                    raise e
        else:
            return self.value
dataset/ETHPy150Open impactlab/eemeter/eemeter/meter/base.py/DataContainer.get_value