matrix: use a custom low-level C structure to avoid boxing of param types
[nit.git] / lib / popcorn / pop_validation.nit
index 386bb24..b1464b8 100644 (file)
@@ -70,7 +70,7 @@
 # ~~~
 module pop_validation
 
-import json
+import json::static
 
 # The base class of all validators
 abstract class DocumentValidator
@@ -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