https://github.com/thatscalaguy/circe-jq
Run jq filter on circe json objects.
https://github.com/thatscalaguy/circe-jq
cats circe jq json scala
Last synced: 5 months ago
JSON representation
Run jq filter on circe json objects.
- Host: GitHub
- URL: https://github.com/thatscalaguy/circe-jq
- Owner: ThatScalaGuy
- License: apache-2.0
- Created: 2022-11-23T12:49:07.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T22:21:26.000Z (about 1 year ago)
- Last Synced: 2025-04-02T20:06:38.203Z (7 months ago)
- Topics: cats, circe, jq, json, scala
- Language: Scala
- Homepage: https://thatscalaguy.github.io/circe-jq/
- Size: 69.3 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# circe-jq
[](https://index.scala-lang.org/thatscalaguy/circe-jq/circe-jq)
[](https://index.scala-lang.org/thatscalaguy/circe-jq/circe-jq)
[](https://maven-badges.herokuapp.com/maven-central/de.thatscalaguy/circe-jq_2.13)Run jq filter on circe json objects.
For more detail go [here](https://thatscalaguy.github.io/circe-jq/).
Inspired by [scalajq](https://github.com/6u1ll4um3/scalajq)
## Current state
- Identity \
```json.jq(".")```
- Object Identifier-Index \
```json.jq(".name")``` \
```json.jq(".[name]")``` \
```json.jq(""".["name"]""")```
- Optional Object Identifier-Index \
```json.jq(".name?")``` \
```json.jq(".[name]?")``` \
```json.jq(""".["name"]?""")```
- Generic Object Index \
```json.jq(""".["name"]""")```\
```json.jq(""".["name"]?""")```
- Array Index \
```json.jq(".[1]")```
- Array/String Slice \
```json.jq(".[1:3]")```
- Pipe \
```json.jq(".user | .name")```
- Object creation\
```json.jq("{key:.value}")```## License
circe-jq\
Copyright 2022 ThatScalaGuy\
Licensed under Apache License 2.0 (see LICENSE)