Validate the JSON after setting a validator.