Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JsonProvider

Base class for all JSON provider implementations.

Hierarchy

  • JsonProvider

Index

Constructors

constructor

  • Returns JsonProvider

Methods

Abstract deserialize

  • deserialize<T>(valueJson: string): T
  • Deserializes a value from a JSON string.
    The type the value to deserialize.

    Type parameters

    • T

    Parameters

    • valueJson: string

      The JSON string to deserialize.

    Returns T

    The deserialized value.

getTypeString

  • getTypeString(): string
  • Returns string

Abstract serialize

  • serialize<T>(value: T): string
  • Serializes a value to a JSON string.
    The type the value to serialize.

    Type parameters

    • T

    Parameters

    • value: T

      The value to serialize.

    Returns string

    The serialized JSON string.