Class DeserializationContext
Encapsulates all data required to deserialize an object from JSON.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Manatee.Json.Serialization
Assembly: Manatee.Json.dll
Syntax
public class DeserializationContext : SerializationContextBase
Properties
| Improve this Doc View SourceJsonRoot
The root of the JSON instance.
Declaration
public JsonValue JsonRoot { get; }
Property Value
Type | Description |
---|---|
JsonValue |
LocalValue
The current value in the JSON instance for deserialization.
Declaration
public JsonValue LocalValue { get; }
Property Value
Type | Description |
---|---|
JsonValue |
ValueMap
A mapping of the deserialized values to the type's property information.
Declaration
public Dictionary<SerializationInfo, object? > ValueMap { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<SerializationInfo, System.Nullable<System.Object>> |
Methods
| Improve this Doc View SourcePop()
Pops details from the context to keep the context in sync with the deserialization process.
Declaration
public void Pop()
Push(Type, String, JsonValue)
Pushes new details onto the context to allow for recursive serialization.
Declaration
public void Push(Type type, string propertyName, JsonValue localValue)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to be deserialized. |
System.String | propertyName | The property name or index. Will be appended to the location as a JSON Path segment. |
JsonValue | localValue | The local JSON value being deserialized. |