Table of Contents

Class QueryJsonConverter

Namespace
Dynamicweb.Indexing.Querying
Assembly
Dynamicweb.Indexing.dll
The Class QueryJsonConverter represents json converter specified for queries
public class QueryJsonConverter : JsonConverter
Inheritance
JsonConverter
QueryJsonConverter
Inherited Members
JsonConverter.CanRead

Properties

CanWrite

Gets value indicates whether converter can write
public override bool CanWrite { get; }

Property Value

bool

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

Create(Type, JObject)

Creates query from json object
protected IQuery Create(Type objectType, JObject jObject)

Parameters

objectType Type
Type of object
jObject JObject
Json object as base for query

Returns

IQuery
Query instance

ReadJson(JsonReader, Type, object, JsonSerializer)

Reads json into query
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
Query as object

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
To top