Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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)