Reputation: 603
When serializing a dictionary of (string, obj) with the default JSON serialization in ASP.Net Core 3.0 the following error was occurring:
unable to cast object of type 'system.szarrayenumerator' to type 'system.collections.idictionaryenumerator'.
Upvotes: 0
Views: 79
Reputation: 603
Was able resolve the issue by switching back to Newtonsoft for serialization via the nuget package: Microsoft.AspNetCore.Mvc.NewtonsoftJson: 3.0.0
Upvotes: 2