jsonfn templating functions generate JSON from JCR nodes in any workspace. This allows you to generate highly customized JSON without writing custom Java classes.
The jsonfn templating functions originated in the neat-jsonfn module, hosted on GitHub and developed by rah003.
Maven is the easiest way to install the module. Add the following dependency to your bundle:
<dependency>
<groupId>info.magnolia.templating</groupId>
<artifactId>magnolia-jsonfn</artifactId>
<version>$desired-version</version>
</dependency>
Pre-built jars are also available for download.