neuecc / Utf8Json

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

When Deserializing - The type initializer for 'Utf8Json.Resolvers.StandardResolver' threw an exception. #138

Open aspnerd opened 5 years ago

aspnerd commented 5 years ago

I'm trying to execute this inside a shared xamarin project: Utf8Json.JsonSerializer.Deserialize<T>(jsonString);

The error I'm receiving is: 'The type initializer for 'Utf8Json.Resolvers.StandardResolver' threw an exception.'

Is there an example of how to get this working in a shared xamarin application?