matmiranda / wirecard-dotnet

🚾 - API do Wirecard para .NET - SDK
https://dev.wirecard.com.br/
MIT License
2 stars 1 forks source link

Newtonsoft.Json.JsonSerializationException #10

Closed matmiranda closed 5 years ago

matmiranda commented 5 years ago

Está gerando uma exceção ao listar todos os clientes:

var result = await WirecardClient.Customer.List();

Mensagem de erro:

Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[WirecardCSharp.Models.CustomerResponse]' 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 'customers', line 1, position 13.'

matmiranda commented 5 years ago

Foi corrigido com a nova versão: 1.0.5