✅ [JsonProprety] isn't being respected ASP.NET Core
Howdy! I've been having this issue that I can't get figure out.
For context this is a ASP.NET Core WebAPI
I have only one controller which is causing me issues and I can't quite figure out why.
This is the signature for it:
This is how
The issue is that
The
I originally was using
For context this is a ASP.NET Core WebAPI
I have only one controller which is causing me issues and I can't quite figure out why.
This is the signature for it:
This is how
PostRequest class looks like:The issue is that
[JsonProperty] Attribute isn't being respected, whenever I sent a request like this:The
TimeStamps doesn't get set to true even though it has the stamps attribute. If I set stamps in curl to timestamps it will work which leads me to believe that they're something wrong with the attributes. I originally was using
System.Text.Json but switch to Newtonsoft.Json thinking It might be a bug in System.Text.Json but sadly nothing changed.