Hi everyone,

I've just submitted the camel-xmljson data format for inclusion in Apache.
Please see patch on https://issues.apache.org/jira/browse/CAMEL-4930.

This data format utilises the json-lib library (
http://json-lib.sourceforge.net/), and more particularly its XMLSerializer,
to support *direct* conversions from JSON to XML and viceversa. I believe
this capability was missing in Camel, since the former route to achieve
this was JSON -> Java objects -> XML. With this data format, the middle
step is dropped, so hopefully this transformation will be more efficient
overall ;)

I've found this component to be extremely useful in conjunction with
MongoDB (camel-mongodb) and any other JSON-based databases or technologies.

Many aspects of the XML -> JSON -> XML transformation can be customised, so
I have exposed most (if not all) the options that Json-lib offers as
options in this data format, both in the Spring DSL and the Java DSL. I
haven't had the chance to add Blueprint nor Scala support.

Hope the Camel riders enjoy it! Let me know if something needs to be
changed!

Thanks,

*Raúl Kripalani*
Principal Consultant | FuseSource Corp.
r...@fusesource.com | fusesource.com <http://www.fusesource.com/> skype:
raul.fuse | twitter: @raulvk <http://twitter.com/raulvk>,
@fusenews<http://twitter.com/fusenews>

Reply via email to