updating json to validate