Changes for page MembershipJson
Last modified by bougault on 2022/03/18 14:34
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,2 +1,4 @@ 1 -{{velocity wiki="false"}}$response.setContentType('application/json')#set($mylist = ['foo','bar'])#set($mymap= {"things": $mylist})$jsontool.serialize(${mymap}){{/velocity}} 2 - 1 +{{groovy}} 2 +def jsontool = new org.xwiki.velocity.tools.JSONTool() 3 +print jsontool.serialize(['alice':2]) 4 +{{/groovy}}