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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Send List Webservice Rest

Hi, 

 

This is how I send the data : 

 

0683p000009Lr9w.jpg

 

This is how I receive the data :

 

 

picture 2 :

 

0683p000009Lr6m.jpg

 

This is how I would like to receive the data, inside an array with the  [    ]

 

  • {"root":{"list":[{"facturacion":"8.50","nmaquina":"2003015","servicios":"14.29","ubicacion":"ANDEN","ultimoarticulo":"AGUA"}] }}

 

When I have more than one row to send, the webservice send the data using an array with the [    ]  . But when I have only one row to send the webservice is sending them without using an array just like picture 2. I want to have the data inside [    ] even if I have only one element to send.

Labels (2)
2 Replies
Anonymous
Not applicable
Author

It seems to be an issue from 2013, I found this topic : https://community.talend.com/t5/Design-and-Development/json-output-almost-there-i-need-arrays-and-it...

 

This is exactly what happens to me :

 

0683p000009Lr3y.jpg

Anonymous
Not applicable
Author

Hello,

Here is the related jira issue mentioned in this referenced topic.

https://jira.talendforge.org/browse/TESB-16205

Could you please take a look at tRESTResponse and tRESTClient components which can use XML to JSON auto-conversion feature?



Best regards

Sabrina