Shantanu Methikar
Shantanu Methikar

Reputation: 164

How to set default JSON Serializer in MAUI?

Microsoft.Text.Json imposes some restrictions that are not configurable, see Documentation.

Because of this limitation I cannot share large data to BlazorWebView as parameter to a function in JS using InvokeVoidAsync.

So, I want to set Newtonsoft.Json as default serializer for my MAUI app. How can this be achieved in Hybrid MAUI app?

I tried finding APIs similar to ASP.NET, like this, to configure default serializer, but could not find it.

Upvotes: 2

Views: 816

Answers (0)

Related Questions