HomeFlows

Json Deserialize Messages in this topic - RSS add reply

Lions22
Lions22
Posts: 106


6/16/2021
Lions22
Lions22
Posts: 106
Im trying to use the Json Deserialize step but keep getting error.

"Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Sample' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List T that can be deserialized from a JSON array.
0 link reply with quote
faiza@decisions.com
faiza@decisions.com
Administrator
Posts: 130


6/16/2021
faiza@decisions.com
faiza@decisions.com
Administrator
Posts: 130
If you are passing in a list then on the JSON Deserialize step you will need to check "Is output Array" setting.

edited by faiza@decisions.com on 6/16/2021

Attachments:
IsOutputArray.png
0 link reply with quote


(Ctrl+Enter)




Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software