dynamically change the json property name and serialize
问题 i want to change the json property name dynamically and serialize the object. here is my json for two different entities For customer { "userName": "66666", "password": "test1234", "customersList": [ { "address": "Test Stree2", "customerNumber": "US01-000281", "city": "" } ] } For contact { "userName": "66666", "password": "test1234", "contactList": [ { "address": "Test stree1", "contactNumber": "US01-000281", "city": "" } ] } and the model that is holding this data is as follows public class