Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def json_stream_list(response, transform=None):
json_stream = _JsonStreamResult(response, transform)
data = []
async for obj in json_stream:
data.append(obj)
return data
def json_stream_stream(response, transform=None):
json_stream = _JsonStreamResult(response, transform)
return json_stream