Search Results for

    Show / Hide Table of Contents

    Class JsonProvider

    An implementation of a JSON provider that uses Json.NET.

    Inheritance
    System.Object
    JsonProvider
    JsonProvider
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: FM.LiveSwitch.JsonNet
    Assembly: FM.LiveSwitch.JsonNet.dll
    Syntax
    public class JsonProvider : JsonProvider

    Properties

    DeserializeSettings

    Gets or sets the Json.NET deserialize settings.

    Declaration
    public static JsonSerializerSettings DeserializeSettings { get; set; }
    Property Value
    Type Description
    JsonSerializerSettings

    SerializeSettings

    Gets or sets the Json.NET serialize settings.

    Declaration
    public static JsonSerializerSettings SerializeSettings { get; set; }
    Property Value
    Type Description
    JsonSerializerSettings

    Methods

    Deserialize<T>(String)

    Deserializes a value from a JSON string.

    Declaration
    public override T Deserialize<T>(string valueJson)
    Parameters
    Type Name Description
    System.String valueJson

    The JSON string to deserialize.

    Returns
    Type Description
    T

    The deserialized value.

    Type Parameters
    Name Description
    T

    The type the value to deserialize.

    Overrides
    JsonProvider.Deserialize<T>(String)

    Serialize<T>(T)

    Serializes a value to a JSON string.

    Declaration
    public override string Serialize<T>(T value)
    Parameters
    Type Name Description
    T value

    The value to serialize.

    Returns
    Type Description
    System.String

    The serialized JSON string.

    Type Parameters
    Name Description
    T

    The type the value to serialize.

    Overrides
    FM.LiveSwitch.JsonProvider.Serialize<T>(T)
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0