Posts by Pedro • 1 point
2 posts
-
0
votes1
answer60
viewsA: Error when serializing JSON in C#, apparently the API returns different structures depending on the object’s completion
The solution was to change the type of my object AddressDTO for dynamic, this way the deserialization happens without problems. public class RecordDTO { [...] public dynamic Endereco { get; set; } }…
-
-1
votes1
answer60
viewsQ: Error when serializing JSON in C#, apparently the API returns different structures depending on the object’s completion
I’m having problems returning a third party API (I don’t have access to the code) that I’m consuming, more specifically in the section below: var result = client.SendAsync(request).Result; var…