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
JsonSerializerSettingsSettings 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
Returns
- object
Deserialized Object
Serialize(object)
Serialize an Object to string with default formatting
public override string Serialize(object value)
Parameters
value
objectObject 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
objectObject to serialize
formatted
boolBoolean indicating whether to format the results or not
Returns
- string
Object serialized to a string