JsValue

smile.json.JsValue
sealed trait JsValue extends Dynamic

JSON value.

Attributes

Graph
Supertypes
trait Dynamic
class Object
trait Matchable
class Any
Known subtypes
class JsArray
class JsBinary
class JsBoolean
class JsCounter
class JsDate
class JsDecimal
class JsDouble
class JsInt
class JsLocalDate
class JsLocalTime
class JsLong
object JsNull
class JsObject
class JsObjectId
class JsString
class JsTimestamp
class JsUUID
object JsUndefined
Show all

Members list

Value members

Concrete methods

def apply(key: String): JsValue
def apply(index: Int): JsValue
def apply(start: Int, end: Int): JsArray
def apply(start: Int, end: Int, step: Int): JsArray
def apply(range: Range): JsArray
def applyDynamic(key: String)(index: Int): JsValue
def asDecimal: BigDecimal
def asInstant: Instant
def asInt: Int
def asLocalDate: LocalDate
def asLocalDateTime: LocalDateTime
def asLocalTime: LocalTime
def asLong: Long
def asTimestamp: Timestamp
def get(key: String): Option[JsValue]
def remove(key: String): Option[JsValue]
def remove(index: Int): JsValue
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def update(key: String, value: JsValue): JsValue
def update(index: Int, value: JsValue): JsValue
def updateDynamic(key: String)(value: JsValue): JsValue
def updateDynamic(index: Int)(value: JsValue): JsValue