You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2022. It is now read-only.
I was trying to switch over from Json.NET to your utf8Json.
But I found out that it does not support inheritance of classes?
Example:
public abstract class JsonDBItem
{
public int ID { get { return _id; } }
private int _id = -1;
}
public class Card: JsonDBItem
{
public string Name { get { return name; } }
private string name = 0;
}
Json:
"_id": 1,
"name": "DummyName"
I have AllowPrivate set to true - so the Json file will deserialize the name, but not the properties from the inherited class JsonDBItem -> ID is still empty - in Json.NET this worked. Any chance to make this possible in utf8json?