Skip to content

Serializing List<Person>  #14

@shay99999

Description

@shay99999

Seems to be an issue with serialization of lists?

List persons = new List();
persons.Add(new Person(....
persons.Add(new Person(....

IEntitySerializer serializer = new EntitySerializer();
dynamic json = serializer.Serialize(persons);

Results in the following error: Object Serialized to Array. JObject instance expected.

Funnily enough seems to serialize a dictionary of persons ok though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions