Hi All,
I am trying to deserialize in json file Before it was working fine but suddenly i ma getting error like this -
Deserialize JSON: Cannot deserialize the current JSON object (e.g. {“name”:“value”}) into type ‘Newtonsoft.Json.Linq.JToken’ because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path ‘data.page’, line 1, position 53.
{“message”:“Success”,“statusCode”:200,“data”:{“page”:1,“pageSize”:20,“totalItems”:1669,“totalPages”:84,“processes”:[{“process_id”:256,“process_slug”:“simplify—r2-ams—ap–phase-2-”,“process_name”:“Simplify - R2 AMS - AP Email scanning solution (Phase 2)”,“process_description”:"{"blocks":[{"key":"oapi1","text":"AMS Wave 2 - . These need to be printed and scanned into S4 system. In an interface through","type":"unstyled","depth":0,"inlineStyleRanges":,"entityRanges":,"data":{}}],