Table of Contents

Class FacetGroupJsonConverter

Namespace
Dynamicweb.Indexing.Querying.Faceting
Assembly
Dynamicweb.Indexing.dll
The Class FacetGroupJsonConverter represents json converter specified for facet group
public class FacetGroupJsonConverter : JsonConverter
Inheritance
JsonConverter
FacetGroupJsonConverter
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 facet group from json object
protected IFacetGroup Create(Type objectType, JObject jObject)

Parameters

objectType Type
Type of object
jObject JObject
Json object as base for facet group

Returns

IFacetGroup
Facet group instance

ReadJson(JsonReader, Type, object, JsonSerializer)

Reads json into facet group
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
Facet group 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