Error Deserialize JSON

Hello,
Im having trouble trying to deserialize this json i get from an GET API call

image

I get this error thrown

“Deserialize JSON: Cannot create and populate list type Newtonsoft.Json.LinqToken. Path ‘classes’, line 1, position 12.”

I have already read all the topics i could find on the uipath forum, i have tried looking at the WebAPI and NewtonsoftJson documentation and have found no awnsear. Can someone please help me?

Hi @mlziade,

Can you please remove slash() from json as below and then try it?

{ “Constants”: [ ] }

It should work.

Regards
Sonali

hello @sonaliaggarwal47

i have tried it, pretty sure its not the problem

as you can see, studio understands it does not have slashes

image

HI @mlziade,

Can you please try by defining something in it? its not able to populate anything under json token classes as its blank.

{ “Constants”:
[
{
“Name”: “log”,
“Value”: “Ent”
}
]
}

Regards
Sonali

please share with us your code, that you are usingfor the deserialization. Thanks

BTW:
Activity is working
grafik
it passed to breakpoint

Api is working:
grafik

Kindly note: in the panels output \" @.."" are visualizing the occurence of a doubleQuote and are not part of th string:

grafik

Hi everyone, i descovered the problem. It was a compatibility error between the WebAPI package and the newest version of the DataService package (21.10.0). I have already open a ticket to report the bug, if possible avoid using the newest version until its fixed.

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