neuecc / Utf8Json

Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).
MIT License
2.35k stars 266 forks source link

Error deserializing JSON array to IEnumerable<T> #168

Open patriziobruno opened 4 years ago

patriziobruno commented 4 years ago

when deserializing

{  "branches_enabled": [] }

to

public class ConcurrentHashSet<T> : IEnumerable<T>, IDisposable {}

the following exception is thrown

Utf8Json.JsonParsingException: 'expected:'{', actual:'[', at offset:23'