grails.converters.deep
Class JSON
java.lang.Object
org.codehaus.groovy.grails.web.converters.AbstractConverter
grails.converters.JSON
grails.converters.deep.JSON
- All Implemented Interfaces:
- Converter
public class JSON
- extends JSON
- implements Converter
A converter that converts domain classes, Maps, Lists, Arrays, POJOs and POGOs
to JSON (Including nested Domain Classes)
- Author:
- Siegfried Puchbauer
Constructor Summary |
JSON()
|
Methods inherited from class grails.converters.JSON |
array, extractIdValue, parse, parse, parse, render, render, setRenderDomainClassRelations, setTarget, toString, value |
JSON
public JSON()
bean
protected void bean(Object o)
throws ConverterException
- Description copied from class:
JSON
- Renders any Java object to the JSON Writer by leveraging the Java reflection API
- Overrides:
bean
in class JSON
- Parameters:
o
- The Bean to render
- Throws:
ConverterException
domain
protected void domain(Object o)
throws ConverterException
- Description copied from class:
JSON
- Renders a instance of a Grails Domain Class to the JSON Writer
- Overrides:
domain
in class JSON
- Parameters:
o
- The Domain Class instance
- Throws:
ConverterException
handleCircularRelationship
protected void handleCircularRelationship(Object o)
throws ConverterException
- Throws:
ConverterException
isRenderDomainClassRelations
public boolean isRenderDomainClassRelations()
- internal Getter
- Overrides:
isRenderDomainClassRelations
in class JSON
- Returns:
- true
Copyright (c) 2005-2006 The Grails project