Re: [xwiki-users] Implement Jsontool.serialize in groovy

2014-07-01 Thread Eduardo Abritta
)println json.toPrettyString(){{/groovy}} Atenciosamente, Eduardo Abritta e-mail: eduardo.abri...@outlook.com | cel: (32)8472-9631 From: eduardo.abri...@outlook.com To: users@xwiki.org Date: Mon, 30 Jun 2014 15:23:37 -0300 Subject: Re: [xwiki-users] Implement Jsontool.serialize in groovy I'm

Re: [xwiki-users] Implement Jsontool.serialize in groovy

2014-06-30 Thread Eduardo Abritta
json.toPrettyString(){{/groovy}} Atenciosamente, Eduardo Abritta e-mail: eduardo.abri...@outlook.com | cel: (32)8472-9631 Date: Fri, 27 Jun 2014 11:51:47 +0200 From: thomas.morta...@xwiki.com To: users@xwiki.org Subject: Re: [xwiki-users] Implement Jsontool.serialize in groovy You should probably use

Re: [xwiki-users] Implement Jsontool.serialize in groovy

2014-06-27 Thread Clemens Klein-Robbenhaar
The velocity tools are not automatically created for groovy scripts The closest you can get is to create them manually in your script, like: def jsontool = new org.xwiki.velocity.tools.JSONTool() I feel there should be a better way to do that, but it works this way. (it is likely that using

Re: [xwiki-users] Implement Jsontool.serialize in groovy

2014-06-27 Thread Thomas Mortagne
You should probably use JsonBuilder which is the standard tool to manipulate JSON in Groovy. On Fri, Jun 27, 2014 at 10:33 AM, Clemens Klein-Robbenhaar c.robbenh...@espresto.com wrote: The velocity tools are not automatically created for groovy scripts The closest you can get is to create them

[xwiki-users] Implement Jsontool.serialize in groovy

2014-06-24 Thread Eduardo Abritta
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