title: How to map JSON field to POCO using Automapper
body: <p>Is it possible to create mapping between POCO and JSON field using Automapper?</p>
  
  <pre><code>public class SomeObjectEntity
  {
      //JSON
      public string TaskData { get; set; }
      public GUID Id { get; set; }
      public DateTime CreateTime { get; set; }
  }
  
  public class SomeObjectModel
  {
      public string Name { get; set; }
      public string[] Emails { get; set; }
      public GUID Id { get; set; }
      public DateTime CreateTime { get; set; }
  }
  </code></pre>
  
  <p>In TaskData i have this JSON string:</p>
  
  <pre><code>@"
  {
      ""Name"": ""Denis"",
      ""EMails"": [
          ""someemail1@email.com"",
          ""someemail2@email.com""
      ]
  }"
  </code></pre>
  
  <p>Is there any way to create map?</p>
  
  <pre><code>protected override void Configure()
  {
      Mapper.CreateMap&lt;SomeObjectEntity, SomeObjectModel&gt;() ...
  
      Mapper.CreateMap&lt;SomeObjectModel, SomeObjectEntity&gt;() ...
  }
  </code></pre>
  
  <p>Thanks.</p>