thatscalaguy / circe-jq   0.1.0

Apache License 2.0 Website GitHub

Run jq filter on circe json objects.

Scala versions: 3.x 2.13
Scala.js versions: 1.x

circe-jq

circe-jq Scala version support circe-jq Scala version support Maven Central

Run jq filter on circe json objects.

For more detail go here.

Inspired by 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)