modify the txt file to json file