How does the JSON - Java transfomations (vice-versa) work in FSW ?
Issue
- The requirement here is to have the
JSON response
coming from an externalREST service
being transformed intoJava objects
. The method of the composite reference's java interface hasString
as return type and the corresponding method in the compoenent reference has aJava object
. What should be done to have theJSON string
transformed intoJava object
? - While generating the transformers between two interfaces in
SwitchYard
it does not allow to do so, by sayingJSON transofmers only support Java-JSON or JSON->Java
. - What should be done to have the
JSON transfomers
created inSwitchYard
application? Should users modify the return type of theComposite Reference
interface ? - When using the
JSON Tranformations
, what is the use of thefrom
attribute ? - How would
Switchyard
know when to transformJSON to Java
or 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.