I had data object that contains attributes as string. I had no trouble in converting it to a map of <String,String> and push it(where key was the attributeName, and value was attributeValue). But now, the data model is going a change, along with the previous attributes now it has a List<Object> where Object it self contains attributes as String. How should I handle this? Is it possible or advisable to have the data model that needs to be pushed in this structure? Please advise.

A sample scenario is presented below. Class Complex contains List of Phones.

Class Complex{
String name;
String id;
List<Phone> simples;
Class Phone{
String phone;