-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Consider the following structure
public class Person
{
public string Name { get; set; }
public Dictionary<string, object> Metadata { get; set; }
}
The encoder doesn't seem to have an issue and serializes the dictionary correctly; here's the encoded value ToString()
.
ObjectV(name: StringV(Japanfy),metadata: ObjectV(comm.status: StringV(connected),comm.satellites: LongV(8)))
However, the decoder doesn't behave well with this and doesn't decode the values of the dictionary. It just creates an empty object for each.
{"Name":"Japanfy","Metadata":{"comm.status":{},"comm.satellites":{}}}
Metadata
Metadata
Assignees
Labels
No labels