JsonCollectionRenderer (Grails 2.3.8)
Date: 2014-04-24

Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD

## grails.rest.render.json
[Groovy] Class JsonCollectionRenderer

    java.lang.Object
      org.grails.plugins.web.rest.render.json.DefaultJsonRenderer
          grails.rest.render.json.JsonRenderer
              grails.rest.render.json.JsonCollectionRenderer

All Implemented Interfaces:
  ContainerRenderer

    @groovy.transform.CompileStatic
    class JsonCollectionRenderer
    extends JsonRenderer

A JSON renderer for a collection of objects

Since:
  2.3.1

Property Summary
`java.lang.Class` | `componentType`

Constructor Summary
`JsonCollectionRenderer(java.lang.Class componentType)`
`JsonCollectionRenderer(java.lang.Class componentType, MimeType... mimeTypes)`

Method Summary
`protected void` | `renderJson(JSON converter, RenderContext context)`

Methods inherited from class JsonRenderer
registerCustomConverter, registerCustomMarshaller, renderJson

Methods inherited from class DefaultJsonRenderer
render, renderJson, renderJson

Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Property Detail

### componentType

    final java.lang.Class componentType

Constructor Detail

### JsonCollectionRenderer

    JsonCollectionRenderer(java.lang.Class componentType)

### JsonCollectionRenderer

    JsonCollectionRenderer(java.lang.Class componentType, MimeType... mimeTypes)

Method Detail

### renderJson

    @java.lang.Override
    protected void renderJson(JSON converter, RenderContext context)

Groovy Documentation