Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-23T20:35:32.000Z (about 1 year ago)
- Last Synced: 2023-11-23T21:28:23.233Z (about 1 year ago)
- Topics: cats, circe, jq, json, scala
- Language: Scala
- Homepage: https://thatscalaguy.github.io/circe-jq/
- Size: 64.5 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# circe-jq
[![circe-jq Scala version support](https://index.scala-lang.org/thatscalaguy/circe-jq/circe-jq/latest-by-scala-version.svg?platform=jvm)](https://index.scala-lang.org/thatscalaguy/circe-jq/circe-jq)
[![circe-jq Scala version support](https://index.scala-lang.org/thatscalaguy/circe-jq/circe-jq/latest-by-scala-version.svg?platform=sjs1)](https://index.scala-lang.org/thatscalaguy/circe-jq/circe-jq)
[![Maven Central](https://img.shields.io/maven-central/v/de.thatscalaguy/circe-jq_2.13.svg)](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)