modelbuilder: remove `parse_and_build` and `build_all_classes`
[nit.git] / lib / json / json_reader.nit
index 23611eb..b99bb39 100644 (file)
@@ -99,9 +99,9 @@ redef extern JsonObject
 
        # Get this json object as a String
        private fun json_to_string : String import String::from_cstring `{
-               char *cstring;
+               const char *cstring;
                cstring = json_object_get_string( recv );
-               return new_String_from_cstring( cstring );
+               return new_String_from_cstring( (char*)cstring );
        `}
 
        # Intermediate function to convert to gt this Json object as a given type.