def METHOD_NAME(self, data):
    if isinstance(data, GeneratorType):
        out = ''.join([r for r in self.genstreamer(data)])
        return out
    thunker = JSONThunker()
    data = thunker.thunk(data)
    return METHOD_NAME.dumps(data)