Fix validation errors in json