Formatting tRESTResponse as object instead of array
Hi All, I'm fairly new to talend and I have what may be a bit of a newbie question... I am trying to return a JSON object using a tRESTResponse component but i can't figure out how to get my response wrapped in curly brackets?? It appears that the square brackets are being wrapped around the response in the tRESTResponse component so I can't just wrap the string in curly brackets... Job flow: tRESTRequest -> tJavaFlex -> tMap -> tRESTResponse ^ subJob What I need:
Re: Formatting tRESTResponse as object instead of array
Thanks for your response shong, i was able to work around this by just wrapping my output in the curly brackets and then referencing the return array position 0. I don't believe this is an issue with talend, I was just curious if there was a config i was missing in the tRESTResponse...