Re: [xwiki-users] using JSON (how?)
Hi, On Mon, Jul 23, 2012 at 2:11 PM, Nicolas Sanitas nicolas.sani...@intech.luwrote: Hi there, we have to parse and generate JSON in our code; we wonder wich is the bast way/language (Velocity or Groovy) to do that in XWiki? There is a JSON tool in velocity to do the serializing part : https://raw.github.com/xwiki/xwiki-commons/master/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java You could propose a patch to add simple Map parsing based on net.sf.json. In groovy, you have the native JsonBuilder and JsonSlurpers to perform this kind of things. Cheers, Jerome Thx by advance, Nicolas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Jérôme Velociter Winesquare http://www.winesquare.net/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] using JSON (how?)
Thank you Jérôme. We've used JsonBuilder and JsonSlurpers (Groovy), and everything goes fine! 2012/7/24 Jerome Velociter jer...@winesquare.net: Hi, On Mon, Jul 23, 2012 at 2:11 PM, Nicolas Sanitas nicolas.sani...@intech.luwrote: Hi there, we have to parse and generate JSON in our code; we wonder wich is the bast way/language (Velocity or Groovy) to do that in XWiki? There is a JSON tool in velocity to do the serializing part : https://raw.github.com/xwiki/xwiki-commons/master/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java You could propose a patch to add simple Map parsing based on net.sf.json. In groovy, you have the native JsonBuilder and JsonSlurpers to perform this kind of things. Cheers, Jerome Thx by advance, Nicolas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Jérôme Velociter Winesquare http://www.winesquare.net/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] using JSON (how?)
Hi there, we have to parse and generate JSON in our code; we wonder wich is the bast way/language (Velocity or Groovy) to do that in XWiki? Thx by advance, Nicolas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users