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
class Object
trait Matchable
class Any
Self type
custom.type

Members list

Type members

Inherited types

type JsField = (String, JsValue)

Attributes

Inherited from:
DefaultExports (hidden)

Value members

Inherited methods

def jsonReader[T](implicit reader: JsonReader[T]): JsonReader[T]

Attributes

Inherited from:
DefaultExports (hidden)
def jsonWriter[T](implicit writer: JsonWriter[T]): JsonWriter[T]

Attributes

Inherited from:
DefaultExports (hidden)

Implicits

Inherited implicits

implicit def enrichAny[T](any: T): RichAny[T]

Attributes

Inherited from:
DefaultExports (hidden)
implicit def enrichString(string: String): RichString

Attributes

Inherited from:
DefaultExports (hidden)

Exports

Defined exports

Exported from json
Exported from json
final val JsArray: JsArray.type
Exported from json
final type JsArray = JsArray
Exported from json
final val JsBoolean: JsBoolean.type
Exported from json
final type JsBoolean = JsBoolean
Exported from json
final val JsNull: JsNull.type
Exported from json
final val JsNumber: JsNumber.type
Exported from json
final type JsNumber = JsNumber
Exported from json
final val JsObject: JsObject.type
Exported from json
final type JsObject = JsObject
Exported from json
final val JsString: JsString.type
Exported from json
final type JsString = JsString
Exported from json
final type JsValue = JsValue
Exported from json
final val JsonFormat: JsonFormat.type
Exported from json
final type JsonFormat = JsonFormat
Exported from json
final type JsonProtocol = JsonProtocol
Exported from json
final val JsonReader: JsonReader.type
Exported from json
final type JsonReader = JsonReader
Exported from json
final val JsonWriter: JsonWriter.type
Exported from json
final type JsonWriter = JsonWriter
Exported from json
Exported from json
Exported from json
Exported from json