Closed hhuimie closed 8 years ago
code below: class A:
public class A { public int i; }
class B:
public class B { public String name; }
and the list:
List list = new ArrayList<>(); list.add(new A()); ... list.add(new B()); ...
I wanna know how to serialize the list to string and parse the string to list. I'm so sorry if I'm asking a stupid question. Thanks!
This isn't supported, as the library would have no idea what kind of class it should parse to in this case.
editing.
code below: class A:
class B:
and the list:
I wanna know how to serialize the list to string and parse the string to list. I'm so sorry if I'm asking a stupid question. Thanks!