Class JsonStringTypeConverter
- Namespace
- Dynamicweb.Indexing.Querying.Expressions
- Assembly
- Dynamicweb.Indexing.dll
The Class QueryJsonConverter represents json converter specified for string output
public class JsonStringTypeConverter : JsonConverter
- Inheritance
-
JsonConverterJsonStringTypeConverter
- Inherited Members
-
JsonConverter.CanReadJsonConverter.CanWrite
Methods
CanConvert(Type)
Indicates whether converter can convert the type
public override bool CanConvert(Type objectType)
Parameters
objectType
Type- Type of object
Returns
- bool
- True if converter can convert the Type, otherwise - false
ReadJson(JsonReader, Type, object, JsonSerializer)
Reads json into string
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
reader
JsonReader- Json writer
objectType
Type- Type of object
existingValue
object- Existing value
serializer
JsonSerializer- Json serializer
Returns
- object
- Type object of reader value
WriteJson(JsonWriter, object, JsonSerializer)
Writes value using json writer
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
writer
JsonWriter- Json writer
value
object- The value to be written
serializer
JsonSerializer- Json serializer