rahicks
rahicks

Reputation: 603

Unable to serialize IDictionary<string,obj> in ASP.Net Core 3.0 in F#

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

Answers (1)

rahicks
rahicks

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

Related Questions