-
Notifications
You must be signed in to change notification settings - Fork 413
feat(p/json): JSON path support #1937
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
Hello @notJoon . Some CI tests from Sept. 3 failed. Maybe merge master again to see if they pass? |
It causes an unknown panic, so I'll leave it in draft until I resolve it. |
Only 3 failed tests this time :-) . |
I think the "examples/fmt" failure is easy to fix. "Some gno files are not formatted, please run 'make fmt'." |
Removed the |
Closing for cleanup on old PRs |
Description
Implemented a feature that parses JSONPath expression using a state machine and extracts data matching the specified path from the input JSON data.
JSONPath is an expression used to select and filter specific data within a JSON data. This implementation supports the basic functionalities of JSONPath.
Here's a table summarizing the supported JSONPath features now:
$
)$.store.book[0].title
*
)$.store.*
[]
)$.store.book[0]
..
)$..price
:
)$.store.book[0:2]
Currently, This implementation focuses on the basic functionality of JSON path expressions to prevent the size of PR is bigger. So, the filter expressions(
?(@)
) are not implemented yet. but this feature will be added with complex filtering and built-in functions.I expect, with this JSONPath parser, users can easily extract and utilize desired information from within JSON data.