How to ignore false values with System.Text.Json
问题 I'm migrating from Newtonsoft.Json to System.Text.Json in my .NET Core 3.0 application. I'm trying to ignore false values. In System.Text.Json I found the option to ignore null values: JsonSerializerOptions.IgnoreNullValues = true; But I cannot find the option to ignore false values in System.Text.Json . Does someone know how can this be achieved with System.Text.Json ? Or if someone know the equivalent of Newtonsoft DefaultValueHandling = DefaultValueHandling.Ignore option that would be