Skip to content

Commit d9d185d

Browse files
authored
Remove Stack section (#16693)
1 parent c0c7f92 commit d9d185d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

docs/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,6 @@ To implement type inference for `object` properties, create a converter like the
132132

133133
`Newtonsoft.Json` doesn't have a maximum depth limit by default. For <xref:System.Text.Json> there's a default limit of 64, and it's configurable by setting <xref:System.Text.Json.JsonSerializerOptions.MaxDepth?displayProperty=nameWithType>.
134134

135-
### Stack type handling
136-
137-
In <xref:System.Text.Json>, the order of a stack's contents is reversed when it's serialized. This behavior applies to the following types and interface and user-defined types that derive from them:
138-
139-
* <xref:System.Collections.Stack>
140-
* <xref:System.Collections.Generic.Stack%601>
141-
* <xref:System.Collections.Immutable.ImmutableStack%601>
142-
* <xref:System.Collections.Immutable.IImmutableStack%601>
143-
144-
A custom converter could be implemented to keep stack contents in the same order.
145-
146135
### Omit null-value properties
147136

148137
`Newtonsoft.Json` has a global setting that causes null-value properties to be excluded from serialization: [NullValueHandling.Ignore](https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_NullValueHandling.htm). The corresponding option in <xref:System.Text.Json> is <xref:System.Text.Json.JsonSerializerOptions.IgnoreNullValues%2A>.

0 commit comments

Comments
 (0)