how do I map this using Automapper
问题 I am in need to map the below scenario. public class Customer { public string CustomerJson { get; set; } } public class CustomerTO { public object CustomerJson { get; set; } } From DAL I get CustomerJson value as below. Customer.CustomerJson = { "name": "Ram", "city": "India" } I am in need to Deserialize this string. so I tried the below stuff while mapping. var config = new MapperConfiguration(cfg => { cfg.CreateMap<Customer, CustomerTO>() .ForMember(dest => dest.CustName, opt => opt