change txt to json