title: Ignore property with attribute in custom JSON converter
body: <p>We are using <code>.NET Core 3.1</code>. We have a custom JSON converter for <code>DateTime</code> and <code>DateTime?</code> properties.</p>
  <p><strong>JsonDateTimeConverter.cs</strong></p>
  <pre class="lang-cs prettyprint-override"><code>public class JsonDateTimeConverter : DateTimeConverterBase
  {
      public override bool CanConvert(Type objectType)
      {
          // I want to return false for object properties which have attribute &quot;TimeZoneIgnore&quot;
          
          return objectType == typeof(DateTime) || objectType == typeof(DateTime?);
      }
  
      public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
      {
          throw new NotImplementedException();
      }
  
      public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
      {
          // convert datetime to timezone
          DateTime? dateTime = (value as DateTime?).ConvertToTimeZone(&quot;CEST&quot;);
  
          writer.WriteValue(dateTime);
          writer.Flush();
      }
  }
  </code></pre>
  <p><strong>TimeZoneIgnore.cs</strong></p>
  <pre class="lang-cs prettyprint-override"><code>[AttributeUsage(AttributeTargets.Property)]
  public class TimeZoneIgnore : Attribute { }
  </code></pre>
  <p><strong>Bank.cs</strong></p>
  <pre class="lang-cs prettyprint-override"><code>public class Bank
  {
      public string Name { get; set; }
      public DateTime ConvertThis { get; set; }
      [TimeZoneIgnore]
      public DateTime DontConvertThis { get; set; }
  }
  </code></pre>
  <p><strong>TestController.cs</strong></p>
  <pre class="lang-cs prettyprint-override"><code>[HttpGet]
  public IActionResult Test123()
  {
      JsonSerializerSettings settings = new JsonSerializerSettings();
      settings.Converters.Add(new JsonDateTimeConverter());
      
      return Json(new Bank()
      {
          Name = &quot;Test bank&quot;,
          ConvertThis = new DateTime(2020, 8, 18, 15, 7, 1),
          DontConvertThis = new DateTime(2020, 8, 18, 15, 7, 1)
      }, settings);
  }
  </code></pre>
  <p>How can I return <code>false</code> in <code>CanConvert(Type objectType)</code> for object properties with <code>TimeZoneIgnore</code> attribute?</p>