Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taimoorzaeem/aeson-jsonpath

Parse and run JSONPath queries on Data.Aeson
https://github.com/taimoorzaeem/aeson-jsonpath

haskell jsonpath

Last synced: about 1 month ago
JSON representation

Parse and run JSONPath queries on Data.Aeson

Awesome Lists containing this project

README

        

# aeson-jsonpath

![ci-badge](https://github.com/taimoorzaeem/aeson-jsonpath/actions/workflows/haskell.yml/badge.svg?event=push)

Run [RFC 9535](https://www.rfc-editor.org/rfc/rfc9535) compliant JSONPath queries on [Data.Aeson](https://hackage.haskell.org/package/aeson).

## Roadmap

- [ ] Selectors
- [x] Name Selector
- [x] Index Selector
- [x] Slice Selector
- [x] Wildcard Selector
- [ ] Filter Selector
- [ ] Segments
- [x] Child Segment
- [ ] Descendant Segment
- [ ] Function Extensions

## Usage

```haskell
import Data.Aeson.JSONPath (runJSPQuery)

let rootDoc = runJSPQuery "$" jsonDoc -- returns the root object
```

## Development

The project is unreleased. Contributions are welcomed.