square-dotnet-sdk icon indicating copy to clipboard operation
square-dotnet-sdk copied to clipboard

Json Deserilization Issue

Open aksgcg opened this issue 3 years ago • 1 comments

I got following issue throwing from assembly directly. Please have a look at it. Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Square.Models.TerminalCheckout' 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. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path 'checkout', line 1, position 14.

aksgcg avatar Sep 29 '22 14:09 aksgcg

hi @aksgcg

Are you still running into this issue? Can you provide any further code around the problem?

zenmasterjobo avatar Apr 03 '24 17:04 zenmasterjobo