*: update redefs of `to_json`
[nit.git] / lib / popcorn / pop_validation.nit
index 386bb24..7dd529d 100644 (file)
@@ -152,7 +152,7 @@ class ValidationResult
                return obj
        end
 
-       redef fun to_json do return json.to_json
+       redef fun serialize_to(v) do json.serialize_to(v)
 
        # Returns the validation result as a pretty formated string
        fun to_pretty_string: String do