-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
JSON Deserialization (using System.Text.Json) in Nested Class Fails #35957
Labels
Milestone
Comments
Dotnet-GitSync-Bot
added
area-System.Text.Json
untriaged
New issue has not been triaged by the area owner
labels
May 7, 2020
Tagging subscribers to this area: @jozkee |
@jozkee : PLEASE CLOSE THIS ISSUE. MY MISTAKE. |
I couldn't repro this: https://dotnetfiddle.net/49ylUD. @tlbaxter is this why you want the issue closed? |
@layomia -- Yes, I made a mistake. So sorry to have wasted your time. |
@tlbaxter, no worries. |
ghost
locked as resolved and limited conversation to collaborators
Dec 9, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm new here so forgive me if I am not doing something right.
We're using Core v3.1 and trying to deserialize a small bit of JSON. I have this simple class structure, where we are trying to deserialize into
A.B
.When I try to deserialize into
A.B
I get an empty object with only default values. Neither of these work:If I remove the
B
class from its nesting and make it "stand-alone" I can deserialize into it just fine. Should I not be able to deserialize intoA.B
?The text was updated successfully, but these errors were encountered: