JsonPath to LINQ Expressions
This project allows generating LINQ Expression from JsonPath queries.
Install-Package JsonPathLINQ
private class TestObject
{
public string stringValue { get; set; }
}
var exp = JsonPathLINQ.JsonPathLINQ.GetExpression<TestObject>(".stringValue");
var compiled = exp.Compile();
var result = compiled.Invoke(new TestObject());
- Property Access
- Examples
- ".property"
- ".property.subProperty"
- Examples
- Filter
- Examples
- ".list[?(@.Type=="1")].Status"
- Operators
- Equals (==)
- Examples