ProtocolJsonSerializer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extensions for converting objects to desired types using serialization.
public static class ProtocolJsonSerializer
type ProtocolJsonSerializer = class
Public Module ProtocolJsonSerializer
- Inheritance
-
ProtocolJsonSerializer
Fields
| Name | Description |
|---|---|
| ApplicationJson | |
Properties
| Name | Description |
|---|---|
| ChannelIdIncludesProduct |
Provides a way to turn off the {channelId}:{product} notation. If false, ChannelId.ToString() is just the {channelId} value. However, serialization of the ProductInfo Entity is still accounted for. ChannelId.SubChannel is still populated with the ProductInfo.Id value in any case. It is not recommended to set false without guidance. |
| EntityTypes |
Maintains a mapping of entity type names to their corresponding Type objects. |
| SerializationOptions | |
| UnpackObjectStrings | |
Methods
| Name | Description |
|---|---|
| Add(IDictionary<String,JsonElement>, Object) | |
| AddEntityType(String, Type) | |
| ApplyExtensionConverters(IList<JsonConverter>) | |
| ApplyExtensionOptions(Func<JsonSerializerOptions,JsonSerializerOptions>) | |
| CloneTo<T>(Object) | |
| Equals<T>(T, T) | |
| GetAs<ToT,FromT>(FromT) | |
| ToJson(Object) | |
| ToJsonElements(Object) |
Decompose an object into its constituent JSON elements. |
| ToObject<T>(Object, Func<T>) |
Convert an object to the desired type using serialization and deserialization. |