Getting Error in Deserialize JSON activity. Error Screenshot as below
Could you add screenshots of the variables you use in the activity? I believe you might have to change the type of the output variable to JObject instead of JToken.
Input datatype is string and output is JsonObject
TypeArgument is Newtonsoft.Json.linq.JObject
Does it work with JArray as the type Argument? (or, the Deserialize JSON Array activity)?
The error message could not be more clear here, I think -> It finds an JArray but is forced to save it to another variable type (JObject is therefore not the right answer).
Could you maybe post a sample JSON that you feed into this activity?
PFB Input string -
Thanks, I’ll have a look.
I removed it just in case it contains some sensitive information.
It actually worked for me as it should:
Could you maybe try with a simply hard coded input like so:
Just to see if it will parse it correctly:
Trial code worked for me too. But input which i have sent you befoer is not working…
For the previous input, I did one change before running it in Studio. I noticed that it looks like that (the quotes):
So I did a find replace on all the quotes to get to this:
Could this possibly be what causes the issue for you?
Can you please check attached sample workflow.First Deserialize activity working but second Deserialize activity is not working for different input.Please check…
Surprisingly, it worked for me without any issue.
Could you maybe try this:
It should work, and then it would mean that there was some corruption in your current project.
This worked ,After changing project folder it worked without error .Thanks for resolving this issue with instant reply…
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.