tryToJsonValue

given tryToJsonValue[T, M <: ([T] =>> Try[T])](using val convert: JsonOutput[T]): JsonOutput[M[T]]

Converts Success to JsonValue or returns JsonNull if Failure.

Value members

Concrete methods

def apply(value: M[T]): JsonValue

Converts to JSON value.

Converts to JSON value.

Inherited methods

@unspecialized
def andThen[A](g: JsonValue => A): M[T] => A
Inherited from
Function1
@unspecialized
def compose[A](g: A => M[T]): A => JsonValue
Inherited from
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from
Function1

Concrete fields

protected val convert: JsonOutput[T]

Extensions

Inherited extensions

extension (x: T)

x.convert converts a value x of type T to type U

x.convert converts a value x of type T to type U

Inherited from
Conversion