Class TypedJsonPathExpression<TValue>
A JsonPath expression that remembers the target CLR type TValue.
When the pipeline calls Evaluate<object>(exchange), the stored type is used
for the internal call, ensuring proper
type conversion (e.g., jpath<bool>("$.isHired") returns a boxed
instead of a raw Newtonsoft.Json.Linq.JValue).
public sealed class TypedJsonPathExpression<TValue> : Expression, IExpression
Inheritance
Implements
Inherited Members
Expression.and(IPredicate),Expression.contains(object),Expression.endsWith(object),Expression.Evaluate<T>(IExchange),Expression.In(params object[]),Expression.isBetween(object, object),Expression.isEqualTo(object),Expression.isGreaterThan(object),Expression.isGreaterThanOrEqualTo(object),Expression.isLessThan(object),Expression.isLessThanOrEqualTo(object),Expression.isNotEqualTo(object),Expression.isNotNull(),Expression.isNull(),Expression.not(),Expression.or(IPredicate),Expression.regex(string),Expression.SetValue(IExchange, object),Expression.startsWith(object),Expression.ToTemplateString()
Methods
Evaluate<T>(IExchange)
Evaluates the expression and returns the result cast to T.
public override T Evaluate<T>(IExchange exchange)
From(IExpression)
Returns the same expression reading source instead of the message body.
public TypedJsonPathExpression<TValue> From(IExpression source)
SetValue(IExchange, object)
Sets a value in the exchange according to this expression's semantics.
public override void SetValue(IExchange exchange, object value)
Constructors
TypedJsonPathExpression(string, IExpression?)
Initializes a new instance of the class.