This plugin allows you to setup global JSON setting in your Config.groovy file. You can exclude properties by name, prevent null properties from rendering, and ignore the version property.
Groovy
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
grails-app/conf
src/groovy/com/putneyj
.classpath
.gitignore
.project
GlobalJsonSettings.iml
GlobalJsonSettingsGrailsPlugin.groovy
LICENSE
README.md
application.properties

README.md

Global JSON Settings

This plugin allows you to setup global JSON setting in your Config.groovy file.

You can exclude properties by name, prevent null properties from rendering, and ignore the version property by setting the following properties in your Config.groovy file:

grails.plugin.globalJsonSettings.renderNull = true
grails.plugin.globalJsonSettings.includeVersion = false
grails.plugin.globalJsonSettings.exclusions = "class, password"