Good day,

When using the dataformats with the help of
org.apache.camel.model.dataformat.XmlJsonDataFormat than the typeHints
cannot be set.

I think there is a bug in method configureDataFormat. The second parameter
in the method call
setProperty(camelContext, typeHints, TYPE_HINTS, typeHints);  should be
dataFormat.




<dataFormats>
    <xmljson id="xmljson" typeHints="YES"/>
</dataFormats>


        <bean id="xml2json"
class="org.apache.camel.dataformat.xmljson.XmlJsonDataFormat">
                <property name="typeHints" value="YES"/>
                <property name="expandableProperties" value="objects"/>
                <property name="forceTopLevelObject" value="true"/>
                <property name="trimSpaces" value="true"/>
                <property name="rootName" value="request"/>
                <property name="skipNamespaces" value="true"/>
                <property name="removeNamespacePrefixes" value="true"/>
        </bean>


Kind regards,

Richard



--
View this message in context: 
http://camel.465427.n5.nabble.com/XmlJsonDataFormat-data-format-definition-cannot-set-typeHints-tp5762258.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to