A helper class that uses the logic in grails json view plugin to generate json without needing a gson file and outside the scope of and HTTP request using the JsonViewTemplateEngine see http://views.grails.org/latest/#_the_jsontemplateengine
| Modifiers | Name | Description |
|---|---|---|
static class |
Jsonify.JsonifyResult |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static DefaultGrailsJsonViewHelper |
getViewHelper() |
|
static JsonViewTemplate |
getViewTemplate() |
|
static Jsonify.JsonifyResult |
render(Object object, Map arguments = Collections.emptyMap(, Closure customizer = null )Useful for testing. |
|
static JsonWritable |
renderWritable(Object object, Map arguments = Collections.emptyMap(, Closure customizer = null)see DefaultGrailsJsonViewHelper.render |
Useful for testing. Returns the result with the json object (map or collection) and the jsonText see DefaultGrailsJsonViewHelper.render for arguments
arguments - [includes, excludes, deep, associations, expand]
see DefaultGrailsJsonViewHelper.render and json-views for more details