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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Input for Rest Body without Root node? Alternative to map Rest Body?

Hi,
i am new with talend and I am trying to send a JSON file which I am reading from the file system to a rest resource.
As I understood correctly from the tutorial (see below), I need to use the tXMLMap Component to map my JSON attributes to a Document called "body". This Body is then send to Rest Client.
Tutorial used: https://help.talend.com/search/all?query=tRESTClient&content-lang=en
So far so good. But the body comes with a default root node that encapsulates my whole json like this:
{"root":{"name":"my name", "description": "my description"}}

What I do need though is the REST Body to be without the root node, like this:
{"name":"my name", "description": "my description"}

As seen in the screenshot below, I would like to map the elements directly to under the body node.
http://postimg.org/image/5sw6wi6ut/
Is it possible to map elements directly under the body? Is there maybe another way to map the body content of the rest call?
Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi
On the advanced settings panel of tRestClient, there is an option called 'Drop Json request root' can remove the root node.
Shong
0683p000009MAh9.png

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi
On the advanced settings panel of tRestClient, there is an option called 'Drop Json request root' can remove the root node.
Shong
0683p000009MAh9.png
Anonymous
Not applicable
Author

That did it.
Thank you very much.
Anonymous
Not applicable
Author

0683p000009M0tJ.png

Like you can see in the picture above i got the same problem, i don't want that root item there. But when i check the "Drop json request root", i get the error message below, which is very strange because when i dont check the ""drop json request", all the request go straight to my database (but with the root :s)

0683p000009M0qQ.png0683p000009M0rK.png0683p000009M0tO.pngHere you can see some of my configuration, hope you guys can help me 0683p000009MACn.png