Make the json valid.