Additional methods specific to JSON views
Fields inherited from class | Fields |
---|---|
interface grails.web.mapping.LinkGenerator |
ATTRIBUTE_CONTROLLER, ATTRIBUTE_RESOURCE, ATTRIBUTE_ACTION, ATTRIBUTE_METHOD, ATTRIBUTE_URI, ATTRIBUTE_RELATIVE_URI, ATTRIBUTE_INCLUDE_CONTEXT, ATTRIBUTE_CONTEXT_PATH, ATTRIBUTE_URL, ATTRIBUTE_BASE, ATTRIBUTE_ABSOLUTE, ATTRIBUTE_ID, ATTRIBUTE_FRAGMENT, ATTRIBUTE_PARAMS, ATTRIBUTE_MAPPING, ATTRIBUTE_EVENT, ATTRIBUTE_ELEMENT_ID, ATTRIBUTE_PLUGIN, ATTRIBUTE_NAMESPACE, LINK_ATTRIBUTES, REST_RESOURCE_ACTION_TO_HTTP_METHOD_MAP, REST_RESOURCE_HTTP_METHOD_TO_ACTION_MAP |
Type | Name and description |
---|---|
java.lang.String |
ASSOCIATIONS The associations parameter |
java.lang.String |
DEEP The deep parameter |
java.lang.String |
EXPAND The expand parameter |
Type | Name and description |
---|---|
void |
inline(java.lang.Object object, java.util.Map arguments, groovy.lang.Closure customizer, StreamingJsonDelegate delegate) Renders the given object inline within the current JSON object instead of creating a new JSON object |
void |
inline(java.lang.Object object, java.util.Map arguments, groovy.lang.Closure customizer) Renders the given object inline within the current JSON object instead of creating a new JSON object |
void |
inline(java.lang.Object object, java.util.Map arguments) Renders the given object inline within the current JSON object instead of creating a new JSON object |
void |
inline(java.lang.Object object, groovy.lang.Closure customizer) Renders the given object inline within the current JSON object instead of creating a new JSON object |
void |
inline(java.lang.Object object) Renders the given object inline within the current JSON object instead of creating a new JSON object |
JsonWritable |
render(java.util.Map arguments) Renders a template and returns the output |
JsonWritable |
render(java.lang.Object object, java.util.Map arguments, groovy.lang.Closure customizer) Renders the given object to JSON, typically a domain class, ignoring lazy and internal properties |
JsonWritable |
render(java.lang.Object object, java.util.Map arguments) Renders the given object to JSON, typically a domain class, ignoring lazy and internal properties |
JsonWritable |
render(java.lang.Object object) Renders the given object to JSON, typically a domain class, ignoring lazy and internal properties |
JsonWritable |
render(java.lang.Object object, groovy.lang.Closure customizer) Renders the given object to JSON, typically a domain class, ignoring lazy and internal properties |
Methods inherited from class | Name |
---|---|
interface GrailsViewHelper |
message |
interface grails.web.mapping.LinkGenerator |
grails.web.mapping.LinkGenerator#resource(java.util.Map), grails.web.mapping.LinkGenerator#link(java.util.Map, java.lang.String), grails.web.mapping.LinkGenerator#link(java.util.Map), grails.web.mapping.LinkGenerator#getContextPath(), grails.web.mapping.LinkGenerator#getServerBaseURL() |
The associations parameter
The deep parameter
The expand parameter
Renders the given object inline within the current JSON object instead of creating a new JSON object
object
- The object to renderarguments
- The argumentscustomizer
- The customizerdelegate
- The delegate to use to render the outputRenders the given object inline within the current JSON object instead of creating a new JSON object
object
- The object to renderarguments
- The argumentscustomizer
- The customizerRenders the given object inline within the current JSON object instead of creating a new JSON object
object
- The object to renderarguments
- The argumentsRenders the given object inline within the current JSON object instead of creating a new JSON object
object
- The object to rendercustomizer
- The customizerRenders the given object inline within the current JSON object instead of creating a new JSON object
object
- The object to renderRenders a template and returns the output
arguments
- The named arguments: 'template', 'collection', 'model', 'var' and 'bean'Renders the given object to JSON, typically a domain class, ignoring lazy and internal properties
object
- The object to renderarguments
- The supported named arguments: 'includes' or 'excludes' listcustomizer
- Used to customize the contentsRenders the given object to JSON, typically a domain class, ignoring lazy and internal properties
object
- The object to renderarguments
- The supported named arguments: 'includes' or 'excludes' listRenders the given object to JSON, typically a domain class, ignoring lazy and internal properties
object
- The object to renderRenders the given object to JSON, typically a domain class, ignoring lazy and internal properties
object
- The object to rendercustomizer
- the customizer