Making json valid.