JsoniterPrismMacro
dev.constructive.eo.jsoniter.JsoniterPrismMacro
object JsoniterPrismMacro
Macros backing JsoniterPrism.field(_.fieldName), selectDynamic, at(i), each and their JsoniterTraversal counterparts. Extracts the field name from the selector AST (same pattern as eo-circe's JsonPrismMacro) and emits a widenField / widenIndex / toTraversal call. The single divergence from the circe macro: one JsonValueCodec[B] summon instead of the Encoder[B] / Decoder[B] pair.
val streetP: JsoniterPrism[String] =
JsoniterPrism[Person].field(_.address).field(_.street)
Attributes
- Source
- JsoniterPrismMacro.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsoniterPrismMacro.type
Members list
In this article