result = request.json
if isinstance(result, list):
    return result
return result()