manjunathsinghs
2 years agoNew Contributor II
How can i get the input data sent to JSON parser snap.
Hi, I have JSON parser snap in my pipeline and it is getting data from external resources.
Sometimes the data parse is failing due to invalid input. But am not able to capture that input data and error shows only "Invalid Json error" message (as below).
"error": "Cannot parse JSON data",
"reason": "Unable to parse JSON input, Invalid UTF - 8 middle byte 0x20"
Can somebody help me, how to capture the input data getting into Json parser snap.
Thank You.
Can somebody help me, how to capture the input data getting into Json parser snap.
Thank You.
Hello manjunathsinghs,
I'd suggest using the Binary Copy Snap as your starting point. Then create two copy branches: one for storing the payload through the File Writer Snap, and the other for your downstream logic.
Try this and let me know if this helps you.
Regards,
Aleksandar.
As Aleksandar_A outlined, put Binary Copy Snap as a first pipeline snap:
Make sure that the both Routes are satisfied, so the data can flow in both outputs:
BR,
Spiro Taleski