NewtonSoft Deserialize Not Working Properly In API Controller
I have a situation where if I deserialize a string in my own repository class, I get the full object, an instance of
My repo uses this code to deserialize:
In the controller I have this code:
On my breakpoint just after the above code, I inspect
I somewhat suspect a version mismatch, because the controller has this in the
where my repo's project has no direct references to NewtonSoft at all.
TaxComplianceDetails. If I deserialize in my controller, in an endpoint method, one of the properties of this object, TaxStatus, is null.My repo uses this code to deserialize:
In the controller I have this code:
On my breakpoint just after the above code, I inspect
details and taxComplianceDetails , and in taxComplianceDetails, the TaxStatus property is null.I somewhat suspect a version mismatch, because the controller has this in the
Startup.ConfigureServices method, and the project has this package referencewhere my repo's project has no direct references to NewtonSoft at all.