Abhishek_Soni37
5 years agoContributor
Final Mapper response is generating [] to it
Hi All,
I’m stuck with this small problem where I’m trying to send the response(received from Rest Post Snap) via mapper after extracting the required tags form the response but the final Mapper output is coming with hence the receiver system is not able to parse the message as it’s expecting the message in {}.
Expected response format :
{
“IsSuccess”:true,
“Error”:“”
}
Pipeline Response:
[ {
“IsSuccess”:true,
“Error”:“”
}]
Error at the receiver system:
{“Status”:2,“Error”:“Unable to parse JSON: [\n {"IsSuccess":true,"Error":""}\n]\n”}
Is there a way to avoid those before from the response generated by the Mapper?
Pipeline Details:
Main - Rest Post
Type - Triggered task pipeline
Thanks in advance.!
Cheers,
Abhishek