Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Square Brackets for array in json request are not coming.

0683p000009MBe6.png 0683p000009MBWL.png 0683p000009MBjT.png 0683p000009MBgQ.jpg 0683p000009MBgQ.jpg 
Hi all,
I am new in talend i have faced one problem how i should sent a request json format. my job design is like that
tFixedFlowInput----->tXMLMap---->tRestClient----->tLogRow
when i try to run this job i got following output
Payload: {"Id":"1","name":"jems","number":"256","location":{"city":"quatar"}} 
but i want output like that Payload: {"Id":"1","name":"jems","number":"256","location":}
I mention my job screenshot . please let me know as soon as possible... 
Thanks in advance
Sanjay kg
Labels (5)
3 Replies
Anonymous
Not applicable
Author

Hi 
It doesn't add the square brackets for the array if there is only one item, I am not sure if it is a bug or not for different cases, maybe an option can be added to the component, I would like you to report a issue on our bugtracker.
Best regards
Shong
Anonymous
Not applicable
Author

Hi Shong
Have we added above mentioned option (   add the square brackets for the array) in component ? Currently i am using 5.5.1 version of TOS.
Thanks
Vipin
Anonymous
Not applicable
Author

Any update on this issue. I am facing the same issue. I need to add or remove the square brackets from the response.