Advertisement
aymens

Untitled

Mar 21st, 2011
2,432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.39 KB | None | 0 0
  1. <#macro dateFormat date>${date?string("dd MMM yyyy HH:mm:ss 'GMT'Z '('zzz')'")}</#macro>
  2. <#escape x as jsonUtils.encodeJSONString(x)>
  3. {
  4.     "items":
  5.     [
  6.         <#list data.items as item>
  7.         {
  8.             "nodeRef": "${item.nodeRef}",
  9.             <#-- ... -->
  10.             <#if item.fragments??>
  11.             "fragments": [<#list item.fragments as fragment>"${fragment}"<#if fragment_has_next>,</#if></#list>],
  12.             </#if>
  13.             <#-- ... -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement