You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class MatchingResultDto
{
[DataMember(Name = "id")] public string Id { get; set; }
[DataMember(Name = "entityId")] public Guid EntityId { get; set; }
}
Deserialization throws Unexpected ]
using (var input = new StringReader(result))
{
var deserializedArray = JSON.Deserialize<MatchingResultDto[]>(input, jilOptions);
var deserializedList = JSON.Deserialize<List<MatchingResultDto>>(input, jilOptions); // This fails
var results = deserializedArray?.ToList() ?? new List<MatchingResultDto>();
}
But Array serialization works.
The text was updated successfully, but these errors were encountered:
Cannot be deserialized into
Deserialization throws
Unexpected ]
But Array serialization works.
The text was updated successfully, but these errors were encountered: