I am trying to read the body of an email containing a JSON. When I disable activities I was able to figure out the error is being thrown in my Deserialize JSON array activity.
Here is the error I am getting: Deserialize JSON Array: Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0.
Try removing < pre> and < /pre> a JSON have to start with “{” and ends with “}” and JSON ARRAY have to start with “[” and ends with “]”. So, in your particular case (because you are using Deserialize JSON Array activity) you shoud replace
< pre> by [ and < /pre> by ]
I hope it helps you
Thank you all. I made some updates to the email format. I am not able to split the email body to
emailBodyTrim(0) → which is the JSON (attached in message box screenshot)
emailBodyTrim(1) → my email signature
Here is the error I am getting now: Deserialize JSON Array: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path ‘’, line 1, position 1.
Again, my goal is to parse through the JSON to get each data value.
I need to assign each individual value to a variable.
I am trying to figure out a string conversion because this is the error I am getting: Message Box: Cannot access child value on Newtonsoft.Json.Linq.JProperty.