Source is not valid JSON

I discovered that what was making the JSON invalid was that either the Mailhook was receiving data with new lines in it or Make was adding new lines to the data (probably the former).

I fixed it by using a simple replace function on the data to replace all new lines with a space. This resulted in the JSON string becoming valid and allowing the scenario to proceed normally.

Screenshot for reference:

image

3 Likes