diff --git a/docs/standard/serialization/system-text-json-converters-how-to.md b/docs/standard/serialization/system-text-json-converters-how-to.md index 8e33e3f82bebe..eea0ec5e9e143 100644 --- a/docs/standard/serialization/system-text-json-converters-how-to.md +++ b/docs/standard/serialization/system-text-json-converters-how-to.md @@ -324,6 +324,9 @@ Suppose, for example, you have a `Person` abstract base class, with `Employee` a The following code shows a base class, two derived classes, and a custom converter for them. The converter uses a discriminator property to do polymorphic deserialization. The type discriminator isn't in the class definitions but is created during serialization and is read during deserialization. +> [!IMPORTANT] +> The example code requires JSON object name/value pairs to stay in order, which is not a standard requirement of JSON. + :::code language="csharp" source="snippets/system-text-json-how-to/csharp/Person.cs" id="Person"::: :::code language="csharp" source="snippets/system-text-json-how-to/csharp/PersonConverterWithTypeDiscriminator.cs":::