Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow number strings to be compared to numbers #1023

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IPetersonPDFTron
Copy link

This pull request introduces the capability to compare numbers to strings within the Jayway Json-Path library. This enhancement allows for greater flexibility in querying JSON data, particularly in scenarios where numeric values are represented as strings.

@IPetersonPDFTron
Copy link
Author

Looks like test 90 fails, gotta revisit later

… comparison only when cast to number fails
@IPetersonPDFTron
Copy link
Author

Looks like test 90 fails, gotta revisit later

Got it fixed, needed to cast to numbers and fall back on string comparison on failure.

@IPetersonPDFTron
Copy link
Author

@kallestenflo Are you the right person to tag for approval?

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.

1 participant