Changes for page Macros
Last modified by Jip-jan Alunkel on April 15, 18:09
From version 2.167
edited by Jip-jan Alunkel
on July 14, 00:18
on July 14, 00:18
Change comment:
Update document after refactoring.
To version 2.172
edited by Jip-jan Alunkel
on July 14, 01:06
on July 14, 01:06
Change comment:
Update document after refactoring.
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -177,10 +177,14 @@ 177 177 'outputSyntax': 'plain' 178 178 })) 179 179 ## #set ($json = $xwiki.getURL($O_elementData.select-json, 'get', $queryString)) 180 - #set($json = $xwiki.getDocument($O_elementData.select-json).getContent()) 181 -$jsontool.serialize($json) 182 -##$json 183 -not json 180 + #set($json = $xwiki.getDocument($O_elementData.select-json)) 181 + #set($discard = $json.setContentType('application/json')) 182 + 183 + #set($json = $jsontool.serialize($json.getContent())) 184 +##$jsontool.serialize($json) 185 +##$jsontool.fromString($json) 186 +$json 187 +create json from page 184 184 185 185 #end 186 186 #foreach($key in $json.keySet())