lib & contrib: update imports
[nit.git] / contrib / neo_doxygen / src / model / descriptions.nit
index 1f504ef..58ef0e6 100644 (file)
@@ -16,6 +16,7 @@
 module model::descriptions
 
 import json::static
+import json
 
 # Documentation associated to an entity.
 #
@@ -106,8 +107,8 @@ class Documentation
        # Is the documentation empty?
        fun is_empty: Bool do return content.is_empty
 
-       redef fun to_json do return content.to_json
-       redef fun append_json(b) do content.append_json(b)
+       redef fun serialize_to(v) do content.serialize_to v
+       redef fun accept_json_serializer(v) do content.serialize_to v
 end
 
 # A `Jsonable` array of strings.