/// <summary> /// Converts the filter to its JSON representation. /// </summary> /// <param name="codec">The codec to use for encoding values.</param> public override JObject ConvertToJson(ICodec codec) { JObject json = base.ConvertToJson(codec); json[_operationPropertyName] = new JValue(_comparisonTypes[_comparison]); json[_comparatorPropertyName] = new BinaryComparator(_value).ConvertToJson(codec); return(json); }
/// <summary> /// Converts the filter to its JSON representation. /// </summary> /// <param name="codec">The codec to use for encoding values.</param> public override JObject ConvertToJson(ICodec codec) { JObject json = base.ConvertToJson(codec); json[_operationPropertyName] = new JValue(_comparisonTypes[_comparison]); json[_comparatorPropertyName] = new BinaryComparator(_value).ConvertToJson(codec); return json; }