Help! Deserialize JSON ARRAY BUG

Hi everybody, I have been running my bot with no issue then suddenly I get the error above the array activity takes an email body as an input:

When I checked the ouput of the http request:
image

@Anelisa_Bolosha1,

It may be due to some special characters in your JSON string which is making your JSON invalid.

Get the JSON string logged and validate it for valid JSON format. you can use https://jsonlint.com/ for it.

If it’s breaking due to non JSON character, you will have to escape that character/s.

Thanks,
Ashok :slight_smile:

It turns out that the API that I am using is decommissioned hence I was receiving the 500 error response

1 Like

I was quite sure when using HTTP Request would throw an exception when receiving other code than 2xx. If it doesn’t you can use check it after request is done and throw exception manually.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.