title: Deserialize json property as bool or double
body: <p>I have the following json:</p>
  
  <pre><code>"rates": {
          "AT": {
              "country": "Austria",
              "standard_rate": 20.00,
              "reduced_rate": 10.00,
              "reduced_rate_alt": 13.00,
              "super_reduced_rate": false,
              "parking_rate": 12.00
          },
          "DK": {
              "country": "Denmark",
              "standard_rate": 25.00,
              "reduced_rate": false,
              "reduced_rate_alt": false,
              "super_reduced_rate": false,
              "parking_rate": false
          },
  }
  </code></pre>
  
  <p>And I have the following class to deserialize the json:</p>
  
  <pre><code>    public string country { get; set; }
      public double standard_rate { get; set; }
      //public string reduced_rate { get; set; }
      private double _reduced_rate;
  
      public double reduced_rate
      {
          get { return _reduced_rate; }
          set
          {
              bool isDouble = Double.TryParse(value.ToString(), out _reduced_rate);
              if (isDouble)
                  _reduced_rate = value;
              else
                  _reduced_rate = 0.0;
          }
      }
  
      public string reduced_rate_alt { get; set; }
      public string super_reduced_rate { get; set; }
      public string parking_rate { get; set; }
  </code></pre>
  
  <p>And when the value of <code>reduce_rate</code> is a <code>false</code> I want to set a <code>0.0</code> else the double value. But in the set method never enters into the <code>else</code>.</p>
  
  <p>Is there another approach to resolve this situation?</p>