Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akshaymankar/jsonpath-hs
Haskell implementation of JSONPath
https://github.com/akshaymankar/jsonpath-hs
Last synced: 24 days ago
JSON representation
Haskell implementation of JSONPath
- Host: GitHub
- URL: https://github.com/akshaymankar/jsonpath-hs
- Owner: akshaymankar
- License: bsd-3-clause
- Created: 2019-07-05T12:58:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-18T02:20:48.000Z (about 1 year ago)
- Last Synced: 2024-04-26T01:21:59.654Z (7 months ago)
- Language: Haskell
- Size: 91.8 KB
- Stars: 6
- Watchers: 3
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# jsonpath-hs
Implementation of jsonpath as [described by Steffen Göessner](https://goessner.net/articles/JsonPath/).
## State of this library
This library is still work in progress, but feel free to use it create issues. It lacks some features and has a few variances from the description.
### Missing Features
* The Length funtion: The ability to say `$.length`. It will just look for `length` key as of now.
* ScriptExpression: The ability to say things like `$.book[(3+1)]`### Variances
* The `$` sign in the beginning is not compulsory
* The `$..*` will not produce the root object itself.
## Shout out to [JSON-Path-Test-Suite](https://github.com/gregsdennis/JSON-Path-Test-Suite/tree/master/Tests)
I have copied a few of the tests from there, I will probably just sub-module the repository if and when the whole test suite is green.## Uses
I am using this library to support GCP authentication in the [Kubernetes haskell client](http://github.com/kubernetes-client/haskell).