I got this two classes
public class RootObj
{
public int a { get; set; }
public SubObj sub { get; set; }
}
public class SubObj
{
public int b { get; set; }
}
The JSON string to be deserialized is like
{
"a": 1,
"sub": "{\"b\":2}"
}
Is there an option to deserialize such JSON simply like JsonSerializer.Deserialize<RootObj>(json)
?