Make calendar json valid.