jsonValueToOption

given jsonValueToOption[T](using val convert: JsonInput[T]): JsonInput[Option[T]]

Converts JsonValue to Some or returns None if value is JsonNull.

Value members

Concrete methods

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

Converts JSON value.

Converts JSON value.

Inherited methods

@unspecialized
def andThen[A](g: Option[T] => A): JsonValue => A
Inherited from
Function1
@unspecialized
def compose[A](g: A => JsonValue): A => Option[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: Option[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