How does the JSON - Java transfomations (vice-versa) work in FSW ?
Issue
- The requirement here is to have the
JSON responsecoming from an externalREST servicebeing transformed intoJava objects. The method of the composite reference's java interface hasStringas return type and the corresponding method in the compoenent reference has aJava object. What should be done to have theJSON stringtransformed intoJava object? - While generating the transformers between two interfaces in
SwitchYardit does not allow to do so, by sayingJSON transofmers only support Java-JSON or JSON->Java. - What should be done to have the
JSON transfomerscreated inSwitchYardapplication? Should users modify the return type of theComposite Referenceinterface ? - When using the
JSON Tranformations, what is the use of thefromattribute ? - How would
Switchyardknow when to transformJSON to Javaor vice-versa?
Environment
- 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
