title: Automapper:Converting JSON to list of objects
body: <p>Source Object (JSON, using JSON.NET if it matters):</p>
  
  <pre><code>{
      "conum" : 1001,
      "name" : "CLN Industries Corporation",
      "agencyName" : "Murphy, Holmes &amp; Associates, LLC",
      "sAA" : [{
              "code" : 247,
              "description" : "Mechanic\u0027s lien - Bond to Discharge - Fixed penalty - where principal has posted Performance and Pa"
          }, {
              "code" : 277,
              "description" : "Mechanic\u0027s lien - Bond to Discharge - Open Penalty - where principal has posted Performance and Paym"
          }, {
              "code" : 505,
              "description" : "Indemnity Bonds - Contractor\u0027s Indemnity Against Damages where there is a performance bond and addit"
          }
      ]
  }
  </code></pre>
  
  <p>Destination Object (C#):</p>
  
  <pre><code>public class CorporateRatesInfo
  {
      public string Conum { get; set; }
      public string Name { get; set; }
      public string AgencyName { get; set; }
      public List&lt;SaaCode&gt; SaaCodes { get; set; }
  }
  
  public class SaaCode
  {
      public string Code { get; set; }
      public string Description { get; set; }
  }
  </code></pre>
  
  <p>Automapper config and mappings:</p>
  
  <pre><code>var config = new MapperConfiguration(cfg =&gt;
  {
      cfg.CreateMap&lt;JObject, CorporateRatesInfo&gt;();
      cfg.AddProfile&lt;CorporateRatesProfile&gt;();
  });
  
  //config.AssertConfigurationIsValid();
  _mapper = config.CreateMapper();
  
  
  public class CorporateRatesProfile : Profile
  {
      protected override void Configure()
      {
          CreateMap&lt;JObject, CorporateRatesInfo&gt;()
              .ForMember("SaaCodes", cfg =&gt; { cfg.MapFrom(jo =&gt; jo["sAA"]); })
              .ForMember("Conum", cfg =&gt; { cfg.MapFrom(jo =&gt; jo["conum"]); })
              .ForMember("Name", cfg =&gt; { cfg.MapFrom(jo =&gt; jo["name"]); })
              .ForMember("AgencyName", cfg =&gt; { cfg.MapFrom(jo =&gt; jo["agencyName"]); });
      }
  }
  </code></pre>
  
  <p>Everything works except for the SaaCodes conversion, where Automapper converts each entry into an empty SaaCode object (all properties set to null).</p>
  
  <p>How/where do I tell automapper how to convert items in that JSON field into its destination type?</p>