def _json_to_flat_metrics(self, prefix, data):
        for key, value in data.items():
            if isinstance(value, dict):
                for k, v in self._json_to_flat_metrics(
                        "%s.%s" % (prefix, key), value):
                    yield k, v
            else:
                try:
                    int(value)
                except __HOLE__:
                    value = None
                finally:
                    yield ("%s.%s" % (prefix, key), value)
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/httpjson/httpjson.py/HTTPJSONCollector._json_to_flat_metrics