-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deserializing JSON with JsonProperty("$type") not working #2934
Comments
Newtonsoft.Json treats (The name "Ignore" for this setting is a bit misleading, as property names like
I guess in the past you did set |
Thanks for the suggestion - I will give it a try. |
Source/destination types
Source/destination JSON
Expected behavior
Expected the Type property value with [JsonProperty(PropertyName = "$type")] be properly set.
Actual behavior
Type property is null.
Steps to reproduce
I swear this was working properly at one point, but it's simply failing now. I have a few other properties that I've mapped with
JsonProperty
in the project and those do work correctly, although they do not have$
in the name. I'm on .net6 still.The text was updated successfully, but these errors were encountered: