Hi team
i have one doubt i need to de serialize the output from the json select (i am using the ardojson component) for you reference i have attached the request and response along with OML please help me to do this.
while deserializing i am getting the this kind of error in postman
{
"Errors": [
"Failed to deserialize JSON to Structure1List:\nCannot deserialize the current JSON object (e.g. {\"name\":\"value\"}) into type 'ssSandBox.RestRecords.JSONSTStructure1Structure[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\r\nTo 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.\r\nPath 'name', line 1, position 8."
],
"StatusCode": 500
}
thanks and regards
karthick balaji
Hi Karthick Balaji,
There's a mismatch here between the Json and the deserialize Structure.
You are trying to deserialize an object (1 single record) into an array (list), what's causing this error.
So, you have to change the Json or the structure to match each other.
Regards,
Tami