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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tREST component escapes doublequotes in JSON Array wrong

Hello,

i have following problem. I want to build a JSON Request and send it to a REST Endpoint with the tREST component, so far so good.

This JSON contains an Array. Every value in this Array have to be within doublequotes (example: ["value","value","value"])

But tREST does this: ["value\",\"value\",\"value"\]

This is an Example of the Datainput (first column is the object ID, second are the values comma seperated) :

0693p000008vY1aAAE.png

This Input Data is used to build the JSON Request:

0693p000008vY29AAE.png

0693p000008vY32AAE.png

And tREST build this:

Payload: {"guid":"93E4E59D-B679-46B3-8AD4-7D60DFD1D1B1","jobId":"69e1198d-ae89-4e1a-8894-9a194ed71a85","jobReplyUrl":"https://replyURL:9001/services/esb/eventlogger/api/v0.1","forwardMailObjects":

["\"33FED240-B12F-48F7-B7F7-53A31061431F\""]}

Any ideas what could be wrong?

thanks!

Lars

Labels (5)
1 Reply
manodwhb
Champion II
Champion II

@Lars Hähnel​ , tRestclient requires two fields as input body and string as you see the input schema of tRestclient , you need provide these two fields with same data types and you can pass any one of the value and other filed would be nothing. it works this way. if you have passed proper payload ,which you no need to specify \ .

 

Thanks,

Manohar