jsonValueToTry

given jsonValueToTry[T](using val convert: JsonInput[T]): JsonInput[Try[T]]

Converts JsonValue to Success or returns Failure if unsuccessful.

Value members

Concrete methods

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

Converts JSON value.

Converts JSON value.

Inherited methods

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

Concrete fields

protected val convert: JsonInput[T]

Extensions

Inherited extensions

extension (x: T)
def convert: Try[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