Table of Contents

Class JsonDataConverter

Namespace
DurableTask.Core.Serializing
Assembly
DurableTask.Core.dll

Class for serializing and deserializing data to and from json

public class JsonDataConverter : DataConverter
Inheritance
JsonDataConverter
Inherited Members

Constructors

JsonDataConverter()

Creates a new instance of the JsonDataConverter with default settings

public JsonDataConverter()

JsonDataConverter(JsonSerializerSettings)

Creates a new instance of the JsonDataConverter with supplied settings

public JsonDataConverter(JsonSerializerSettings settings)

Parameters

settings JsonSerializerSettings

Settings for the json serializer

Methods

Deserialize(string, Type)

Deserialize a string to an Object of supplied type

public override object Deserialize(string data, Type objectType)

Parameters

data string

String data of the Object to deserialize

objectType Type

Type to deserialize to

Returns

object

Deserialized Object

Serialize(object)

Serialize an Object to string with default formatting

public override string Serialize(object value)

Parameters

value object

Object to serialize

Returns

string

Object serialized to a string

Serialize(object, bool)

Serialize an Object to string with supplied formatting

public override string Serialize(object value, bool formatted)

Parameters

value object

Object to serialize

formatted bool

Boolean indicating whether to format the results or not

Returns

string

Object serialized to a string