element <object-to-json-transformer>
Namespace:
Type:
Content:
complex, 7 attributes, 1 element
Subst.Gr:
Defined:
globally in mule-json.xsd; see XML source
Used:
never
Content Model Diagram
XML Representation Summary
<object-to-json-transformer
    name
 = 
(xsd:string | xsd:NMTOKEN)
    returnClass
 = 
xsd:string
    ignoreBadInput
 = 
(xsd:string | xsd:boolean)
    mimeType
 = 
xsd:string
    encoding
 = 
xsd:string
    mapper-ref
 = 
xsd:string
    sourceClass
 = 
xsd:string
    >
   
Content: 
serialization-mixin*
</object-to-json-transformer>
Content model elements (1):
May be included in elements by substitutions (127):
mule:response (type anonymous),
mule:response (type anonymous),
Annotation
Converts a java object to a JSON encoded object that can be consumed by other languages such as Javascript or Ruby. The JSON Object mapper can be configured using the {{mapper-ref}} attribute. This is an object reference to an instance of: {{org.codehaus.jackson.Mapper}}. This can be created as a spring bean. Usually the default mapper is sufficient. Often users will want to configure exclusions or inclusions when serializing objects. This can be done by using the Jackson annotations directly on the object (see [http://jackson.codehaus.org/1.3.0/javadoc/org/codehaus/jackson/annotate/package-frame.html]) If it is not possible to annotate the object directly, mixins can be used to add annotations to an object using AOP. There is a good description of this method here: [http://www.cowtowncoder.com/blog/archives/08-01-2009_08-31-2009.html]. To configure mixins for you objects, either configure the {{mapper-ref}} attribute or register them with the transformer using the <serialization-mixin> element. The returnClass for this transformer is usually {{java.lang.String}}, {{byte[]}} can also be used. At this time the transformer does not support streaming.
XML Source (w/o annotations (1); see within schema source)
<xsd:element name="object-to-json-transformer" substitutionGroup="mule:abstract-transformer" type="objectToJsonTransformerType"/>

XML schema documentation generated with DocFlex/XML SDK 1.8.1b6 using DocFlex/XML XSDDoc 2.2.1 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.