Closed gkinsman closed 4 years ago
This PR adds a new IModelBinder interface that allows substitution of an alternative model binding mechanism.
IModelBinder
The default binder uses System.Text.Json, but has some shortcomings such as that it cannot bind properties with private setters.
System.Text.Json
This PR also implements a model binder that uses Newtonsoft.Json for backwards compatibility. It doesn't come out of the box, but is in the tests.
Newtonsoft.Json
Thanks! 👍
This PR adds a new
IModelBinder
interface that allows substitution of an alternative model binding mechanism.The default binder uses
System.Text.Json
, but has some shortcomings such as that it cannot bind properties with private setters.This PR also implements a model binder that uses
Newtonsoft.Json
for backwards compatibility. It doesn't come out of the box, but is in the tests.