-
-
Notifications
You must be signed in to change notification settings - Fork 754
Closed
Description
Is it possible to deserialize optional fields?
{
"A": "A",
"@B": "B",
"@C": "C",
"@D": "D",
"@E": "E",
"@F": "F"
}
{
"A": "A",
"@B": "B",
"@C": "C",
"@D": "D",
"@F": "F"
}
[MessagePackObject]
public struct Foo
{
[Key("A")] public string A;
[Key("@B")] public string B;
[Key("@C")] public string C;
[Key("@D")] public string D;
[Key("@E")] public string E;
[Key("@F")] public string F;
}
Is it possible to deserialize both jsons as Foo by having @E as optional field?
Metadata
Metadata
Assignees
Labels
No labels