-Remove IgnoreAll and move fix to Ignore
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
<content>
|
||||
<para><codeEntityReference>T:Newtonsoft.Json.DefaultValueHandling</codeEntityReference>
|
||||
is an option on the JsonSerializer and controls how the serializer handles
|
||||
properties with a default value. Setting a value of DefaultValueHandling.IgnoreAll
|
||||
properties with a default value. Setting a value of DefaultValueHandling.Ignore
|
||||
will make the JsonSerializer skip writing any properties that have a default
|
||||
value to the JSON result. For object references this will be null. For value
|
||||
types like int and DateTime the serializer will skip the default uninitialized
|
||||
|
||||
@@ -130,12 +130,8 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><legacyBold>Ignore</legacyBold></para></entry>
|
||||
<entry><para>Json.NET will skip writing a field/property value to JSON if the value is null or is the same as the value specified in field/property's <codeEntityReference>T:System.ComponentModel.DefaultValueAttribute</codeEntityReference>. The Json.NET deserializer will skip setting a .NET object's field/property if the JSON value is the same as the default value.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><legacyBold>IgnoreAll</legacyBold></para></entry>
|
||||
<entry><para>Json.NET will skip writing a field/property value to JSON if the value is the same as the field/property's default value, or the custom
|
||||
value specified in <codeEntityReference>T:System.ComponentModel.DefaultValueAttribute</codeEntityReference> if it is present. The Json.NET deserializer
|
||||
value specified in <codeEntityReference>T:System.ComponentModel.DefaultValueAttribute</codeEntityReference> if the attribute is present. The Json.NET deserializer
|
||||
will skip setting a .NET object's field/property if the JSON value is the same as the default value.</para></entry>
|
||||
</row>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user