Hello Sirs,
I need to implement the function "jsontool.serialize" in the code below, 
groovy, and I do not understand the error that is accusing, can help me solve 
this?
{{groovy}}def hql0 = ", BaseObject as obj where doc.fullName = obj.name and 
obj.className = 'E-nova.E-novaClass'";def listProjetos = 
services.query.hql(hql0).execute();def json = ['totalprojetos': 
listProjetos.size(), 'projetos':[1000] , 'edges':[1000] ];def i = 0;
for(item in listProjetos){      def hql = "select distinct list from BaseObject 
as obj, DBStringListProperty as prop join prop.list list where 
obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' 
and obj.name ='$item' ";    def tag = services.query.hql(hql).execute();    i = 
i + 1;
    json.projetos.add({        id: xwiki.getDocument(item).getName()    })}
jsontool.serialize(json);
{{/groovy}}
Ty.
Atenciosamente,
Eduardo Abritta
e-mail: eduardo.abri...@outlook.com | cel: (32)8472-9631

                                          
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to