Global JSON Settings

0 vote
Dependency:
compile ":global-json-settings:0.1.1"

 Documentation  Source  Issues

Summary

Allows you to setup global JSON settings in your Config.groovy file.You can exclude properties by name, prevent null properties from rendering, and ignore the version property.

Installation

grails install-plugin global-json-settings

Description

Allows you to setup global JSON settings in your Config.groovy file.

You can exclude properties by name, prevent nulls from rendering, and ignore version 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"