oxygen.json.JsonCodec
See theJsonCodec companion class
object JsonCodec extends LowPriority1
Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Expects A to be a case class with a single field. Will then derive an instance
Expects A to be a case class with a single field. Will then derive an instance
Example:
final case class Wrapped(value: String)
object Wrapped {
given JsonCodec[Wrapped] = JsonCodec.deriveWrapped
}
Attributes
In this article