Class ExpandoJsonPathConverter

Allows to pass JsonPath string that are applied for particular property names - this will work one on the first level of the

Inheritance
System.Object
Newtonsoft.Json.JsonConverter
ExpandoJsonPathConverter
Inherited Members
Newtonsoft.Json.JsonConverter.CanRead
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.Helper
Assembly: ETLBox.Json.dll
Syntax
    public class ExpandoJsonPathConverter : JsonConverter
Remarks

Constructors

ExpandoJsonPathConverter(IEnumerable<JsonProperty2JsonPath>)

Declaration
    public ExpandoJsonPathConverter(IEnumerable<JsonProperty2JsonPath> pathLookups)
Parameters
TypeNameDescription
System.Collections.Generic.IEnumerable<JsonProperty2JsonPath>pathLookups

Properties

CanWrite

Declaration
    public override bool CanWrite { get; }
Property Value
TypeDescription
System.Boolean
Overrides
Newtonsoft.Json.JsonConverter.CanWrite

PathLookups

Declaration
    public IEnumerable<JsonProperty2JsonPath> PathLookups { get; set; }
Property Value
TypeDescription
System.Collections.Generic.IEnumerable<JsonProperty2JsonPath>

Methods

CanConvert(Type)

Declaration
    public override bool CanConvert(Type objectType)
Parameters
TypeNameDescription
System.TypeobjectType
Returns
TypeDescription
System.Boolean
Overrides
Newtonsoft.Json.JsonConverter.CanConvert(System.Type)

ReadJson(JsonReader, Type, Object, JsonSerializer)

Declaration
    public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
TypeNameDescription
Newtonsoft.Json.JsonReaderreader
System.TypeobjectType
System.ObjectexistingValue
Newtonsoft.Json.JsonSerializerserializer
Returns
TypeDescription
System.Object
Overrides
Newtonsoft.Json.JsonConverter.ReadJson(Newtonsoft.Json.JsonReader, System.Type, System.Object, Newtonsoft.Json.JsonSerializer)

WriteJson(JsonWriter, Object, JsonSerializer)

Declaration
    public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
TypeNameDescription
Newtonsoft.Json.JsonWriterwriter
System.Objectvalue
Newtonsoft.Json.JsonSerializerserializer
Overrides
Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter, System.Object, Newtonsoft.Json.JsonSerializer)