custom
besom.json.custom
object custom
This allows to perform a single import: import besom.json.*
to get basic JSON behaviour. If you need to extend JSON handling in any way, please use import besom.json.custom.*
, then extend DefaultJsonProtocol
:
object MyCustomJsonProtocol extends DefaultJsonProtocol:
given someCustomTypeFormat: JsonFormat[A] = ...
build your customized protocol that way and set it up for your derives
clauses using:
given JsonProtocol = MyCustomJsonProtocol
case class MyCaseClass(a: String, b: Int) derives JsonFormat
Attributes
- Graph
-
- Supertypes
- Self type
-
custom.type
Members list
Type members
Inherited types
Attributes
- Inherited from:
- DefaultExports (hidden)
Value members
Inherited methods
Attributes
- Inherited from:
- DefaultExports (hidden)
Attributes
- Inherited from:
- DefaultExports (hidden)
Implicits
Inherited implicits
Attributes
- Inherited from:
- DefaultExports (hidden)
Attributes
- Inherited from:
- DefaultExports (hidden)
In this article