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
And the class I would like to serialize contains a field : public List<BaseType> list.
The desired output is like this:
list:
- name: "A"a: 1
- name: "B"b: "b"
The default serialization actually works and outputs result as desired, but deserialization isn't. The list is empty after default serialization. I would like to know how this could be achieved?
The text was updated successfully, but these errors were encountered:
Hi,
I am fairly new to the library and I am trying to serialize and deserialize a list of types derived from a base type, consider this example:
And the class I would like to serialize contains a field :
public List<BaseType> list
.The desired output is like this:
The default serialization actually works and outputs result as desired, but deserialization isn't. The list is empty after default serialization. I would like to know how this could be achieved?
The text was updated successfully, but these errors were encountered: