fixing json in file.