Changes for page Macros

Last modified by Jip-jan Alunkel on April 15, 18:09

From version 2.169
edited by Jip-jan Alunkel
on July 14, 00:28
Change comment: Update document after refactoring.
To version 2.173
edited by Jip-jan Alunkel
on July 14, 01:07
Change comment: Update document after refactoring.

Summary

Details

Page properties
Content
... ... @@ -177,12 +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 - #set($json = $jsontool.serialize($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()))
182 182  ##$jsontool.serialize($json)
183 183  $jsontool.fromString($json)
184 184  ##$json
185 -not json
187 +create json from page
186 186  
187 187   #end
188 188   #foreach($key in $json.keySet())