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
object
ExpandoJsonPathConverter
Namespace: ETLBox.Json
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<T><JsonProperty2JsonPath>pathLookups
Remarks

Properties

CanWrite

Declaration
    public override bool CanWrite { get; }
Property Value
TypeDescription
bool
Remarks

PathLookups

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

Methods

CanConvert(Type)

Declaration
    public override bool CanConvert(Type objectType)
Parameters
TypeNameDescription
System.TypeobjectType
Returns
TypeDescription
bool
Remarks

ReadJson(JsonReader, Type, object, JsonSerializer)

Declaration
    public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
TypeNameDescription
JsonReaderreader
System.TypeobjectType
objectexistingValue
JsonSerializerserializer
Returns
TypeDescription
object
Remarks

WriteJson(JsonWriter, object, JsonSerializer)

Declaration
    public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
TypeNameDescription
JsonWriterwriter
objectvalue
JsonSerializerserializer
Remarks