Solved by pierreguillou in post #3 
              
              
                Thanks @philschmid. I tested your code with encoding='utf-8' but it did not change the content of my json file with strange letters instead of letters with accents. 
However, I just found the complementary code in this post that solves my problem: ensure_ascii=False as an argument of json.dump(). 
H…