Skip to content

Expose JPath class to allow compiled JPath to be used on JToken - #3043

Open
BryantL wants to merge 1 commit into
JamesNK:masterfrom
BryantL:master
Open

Expose JPath class to allow compiled JPath to be used on JToken#3043
BryantL wants to merge 1 commit into
JamesNK:masterfrom
BryantL:master

Conversation

@BryantL

@BryantL BryantL commented Apr 21, 2025

Copy link
Copy Markdown

Provides a minimal change implementation for #2985 while following the "Compile" semantics used by "XPathExpression".

"JToken" enhanced with additional "SelectToken"/"SelectTokens" methods that take a "JPath".

Existing "SelectToken"/"SelectTokens" methods modified to call their "JPath" taking counterparts (meaning all existing Unit Tests, test both the existing and new methods).

I did not modify the "JPath" class name however, in keeping with "XPathExpression", it should probably be renamed "JPathExpression". Happy to take feedback on this.

@BryantL
BryantL marked this pull request as ready for review April 21, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants