ToJson

object ToJson extends ConsistentToJson
Companion:
class
class Object
trait Matchable
class Any
ToJson.type

Value members

Concrete methods

def iterator[T](p: T): Iterator[Any]
inline def label[A](using m: Of[A]): String
inline def labels[A <: Tuple]: List[String]
inline def labelsOf[A](using m: Of[A]): List[String]
def toJsonProduct[T](p: ProductOf[T], elems2json: List[ToJson[_]]): ToJson[T]

Givens

Givens

given derived[T](using m: SumOf[T]): ToJson[T]
given derived[T](using m: ProductOf[T]): ToJson[T]
given given_ToJson_List[A : ToJson]: ToJson[List[A]]

Inherited givens

given booleanToJson: ToJson[Boolean]
Inherited from:
ConsistentToJson
given byteToJson: ToJson[Byte]
Inherited from:
ConsistentToJson
given doubleToJson: ToJson[Double]
Inherited from:
ConsistentToJson
given floatToJson: ToJson[Float]
Inherited from:
ConsistentToJson
given intToJson: ToJson[Int]
Inherited from:
ConsistentToJson
given optionToJson[A : ToJson]: ToJson[Option[A]]
Inherited from:
ConsistentToJson
given shortToJson: ToJson[Short]
Inherited from:
ConsistentToJson
given stringToJson: ToJson[String]
Inherited from:
ConsistentToJson