Fix JSON validity.