jsonValueToJsonValue

Returns JsonValue as is.

This instance is required to perform actions such as the following:

import little.json.{ Json, JsonValue }
import little.json.Implicits.given

import scala.language.implicitConversions

val json = Json.obj("values" -> Json.arr("abc", 123, true))

// Requires jsonValueToJsonValue
val list = json("values").as[List[JsonValue]]

Value members

Concrete methods

def apply(value: JsonValue): JsonValue

Converts JSON value.

Converts JSON value.

Inherited methods

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

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