I Do the following :
@app.route('/api/test/', methods=['GET'])
def catalogue1():
cache = []
r = requests.get("http://192.168.198.140:5000/api/listdir")
cache = r.content
cache = ["vagrant.txt", "Securite_sociale.jpg"] ;
when i try to print cache[0] i get "[" .
How can i transform this result to an array .