IJsonDeserializer<T>

Namespace: SnowBank.Data.Json · interface

Type that can deserialize instances of T from JSON

Remarks

Types can serialize themselves, but this interface can also be used on "helper types" that are separate (manually written, or via source code generation)

Methods

Unpack

T Unpack(JsonValue value, ICrystalJsonTypeResolver resolver)

Deserializes a JSON value into an instance of type T

  • value — JSON value to deserialize.
  • resolver — Optional custom resolver

Returns: Deserialized value