SwitchYard community member Alejandro stepped up with a big contribution this week with a JSON transformer.  Like the existing Java and Smooks transformers, JSON transformers are declared in an application configuration and automatically wired into the SwitchYard bus at runtime.  Here's an example definition:

 

<transform.json 
            from="{urn:switchyard-quickstart:transform-json:1.0}order" 
            to="java:org.switchyard.quickstarts.transform.json.Order"/>

 

The JSON transformer takes advantage of the fantabulous Jackson library to map between Java value objects and JSON with ease.  If you would like to see the transformer in action, check out the transform-json project in our Quickstarts repository.

 

Rumor has it that Alejandro will be submitting an XSLT transformer in the near future as well.  Thanks Alejandro!