greyplane / spray-json-optics   0.1.7

GitHub

monocle binding for spray-json

Scala versions: 3.x 2.13

Spray-Json-Optics

Monocle binding for Spray-json, heavily inspired by Circe-optics.

Using spray-json-optics

libraryDependencies ++= Seq(
  "io.github.greyplane" %% "spray-json-optics" % version
)

Warning

unfortunately because the simple encoding for numeric value that spray json was using, it's either impossible or overcomplicated to make these numeric prism lawful, it is still useful but should be used with caution.