Wiki source code of Example JSON
Last modified by Eugen Colesnicov on 2013/03/26 23:29
Hide last authors
author | version | line-number | content |
---|---|---|---|
1.1 | 1 | {{velocity filter="html"}} | |
2 | #if($xcontext.action == 'get' && "$!{request.outputSyntax}" == 'plain') | ||
3 | $response.setContentType('application/json') | ||
4 | #end | ||
5 | |||
6 | [{"id":111,"title":"Event1","start":"2012-06-10","url":"http:\/\/yahoo.com\/"},{"id":222,"title":"Event2","start":"2012-06-20","end":"2012-06-22","url":"http:\/\/yahoo.com\/"}] | ||
7 | {{/velocity}} |