How to import default Grails tag library into JSON Views
<p>The new features for Grails JSON Views are great, but it would be super handy to access all the grails tag libraries in JSON Views. For instance I would like to access the formatDate tag for formatting my dateOfBirth field like so:</p>

<pre><code>model {
    Person person
}
json {
    id person.id
    displayName person.displayName
    dateOfBirth g.formatDate(date: person?.dateOfBirth, format: 'dd-MM-yyyy')
}
</code></pre>

<p>The benefit of using the formatDate tag is that I can leverage the default date format and also import date format properties without extraneous code.</p>

<p>I am using Grails 3.2.0 and Views 1.1.0.</p>