I am trying to json-serialize a class MyRootClass with a property that is a collection of elements of a second class MyClass:
public class MyRootClass { private List<MyInterface> list = ...
I have this specific problem with JSON deserialization. Let's have this JSON structure:
{ "header":{ "objects":[ {"field":"value1"}, {"field":"value2"} ...
I'd like to convert a java collection like this
public Collection<SomeDTO> getPages() { return pages; }
pages: [{DTO}, {DTO}, {DTO}]