Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json Deserilization Issue #102

Open
aksgcg opened this issue Sep 29, 2022 · 1 comment
Open

Json Deserilization Issue #102

aksgcg opened this issue Sep 29, 2022 · 1 comment

Comments

@aksgcg
Copy link

aksgcg commented Sep 29, 2022

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 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.

@zenmasterjobo
Copy link

hi @aksgcg

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants