fixing improperly formatted json

parsing cut off midway and change is saved