Forum Discussion

manjunathsinghs's avatar
manjunathsinghs
New Contributor II
2 years ago
Solved

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.

 

 
  • 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.

7 Replies

No RepliesBe the first to reply