element <object-to-json-transformer> (global)
Namespace:
Type:
Content:
complex, 7 attributes, attr. wildcard, 2 elements
Subst.Gr:
Defined:
globally in mule-json.xsd; see XML source
Used:
never
Content Model Diagram
XML Representation Summary
<object-to-json-transformer
   
 = 
(xsd:string | xsd:NMTOKEN)
 = 
xsd:string
 = 
(xsd:string | xsd:boolean)
 = 
xsd:string
 = 
xsd:string
 = 
xsd:string
 = 
xsd:string
    {any attribute with non-schema namespace}
    >
   
Content: 
mule:annotations?, serialization-mixin*
</object-to-json-transformer>
Content model elements (2):
mule:annotations, serialization-mixin
May be included in elements by substitutions (133):
endpoint, mule:default-exception-strategy,
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 RE 1.8.5 using DocFlex/XML XSDDoc 2.5.0 template set. All content model diagrams generated by Altova XMLSpy via DocFlex/XML XMLSpy Integration.