I have a parent script running 10 child scripts simultaneously through threading.
Each child is a logger of data from an API, is on a while True:
loop and saves datas regarding the data in a json file. When the code is haulted the json sometimes looses integrity and looks like this:
["2016_02_21_18_46_41", 1], ["2016_02_21_18_46_42", 1], ["2016_02_21_18_46_4
meaning that it can't be opened using json.loads
.