title: Custom Deserialization using Json.NET
body: <p>I have a class</p>
  
  <pre><code>public class Order
  {
     public int Id { get; set; }
     public string ShippingMethod { get; set; }
  }
  </code></pre>
  
  <p>and I want to deserialize a JSON data below into the above class/object</p>
  
  <pre><code>string json = @"{
    'Id': 1,
    'ShippingMethod': {
       'Code': 'external_DHLExpressWorldwide',
       'Description': 'DHL ILS Express Worldwide'
    }
  }";
  </code></pre>
  
  <p>My idea is that <code>ShippingMethod</code> in JSON is a object, but I just want to get to <code>ShippingMethod.Code</code> (in JSON) that will pass into <code>ShippingMethod</code> as <code>string</code> in <code>Order</code> class during deserialization.</p>
  
  <p>how can I accomplish that goal using <a href="http://www.newtonsoft.com/json" rel="noreferrer">Json.NET</a>?  </p>
  
  <p>I believe I can accomlish it using <a href="http://www.newtonsoft.com/json/help/html/CustomJsonConverter.htm" rel="noreferrer">CustomJsonConverter</a>. But I get confused. The example in the docs just for <code>WriteJson</code>, but not <code>ReadJson</code>.</p>