How does the JSON - Java transfomations (vice-versa) work in FSW ?

Solution Verified - Updated -


  • The requirement here is to have the JSON response coming from an external REST service being transformed into Java objects. The method of the composite reference's java interface has String as return type and the corresponding method in the compoenent reference has a Java object. What should be done to have the JSON string transformed into Java object ?
  • While generating the transformers between two interfaces in SwitchYard it does not allow to do so, by saying JSON transofmers only support Java-JSON or JSON->Java.
  • What should be done to have the JSON transfomers created in SwitchYard application? Should users modify the return type of the Composite Reference interface ?
  • When using the JSON Tranformations, what is the use of the from attribute ?
  • How would Switchyard know when to transform JSON to Java or vice-versa?


  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In