Packages

case class JsObject(underlying: Map[String, JsValue]) extends JsValue with Product with Serializable

Represent a Json object value.

Source
JsValue.scala
Linear Supertypes
Serializable, Product, Equals, JsValue, JsReadable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsObject
  2. Serializable
  3. Product
  4. Equals
  5. JsValue
  6. JsReadable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsObject(underlying: Map[String, JsValue])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(otherField: (String, JsValue)): JsObject

    Adds one field to the JsObject

  4. def ++(other: JsObject): JsObject

    Merge this object with another one.

    Merge this object with another one. Values from other override value of the current object.

  5. def -(otherField: String): JsObject

    Removes one field from the JsObject

  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def as[T](implicit fjs: Reads[T]): T

    Tries to convert the node into a T, throwing an exception if it can't.

    Tries to convert the node into a T, throwing an exception if it can't. An implicit Reads[T] must be defined.

    Definition Classes
    JsReadable
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def asOpt[T](implicit fjs: Reads[T]): Option[T]

    Tries to convert the node into a T.

    Tries to convert the node into a T. An implicit Reads[T] must be defined. Any error is mapped to None

    returns

    Some[T] if it succeeds, None if it fails.

    Definition Classes
    JsReadable
  10. def canEqual(other: Any): Boolean
    Definition Classes
    JsObject → Equals
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. def deepMerge(other: JsObject): JsObject

    merges everything in depth and doesn't stop at first level, as ++ does

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(other: Any): Boolean
    Definition Classes
    JsObject → Equals → AnyRef → Any
  15. def fieldSet: Set[(String, JsValue)]

    Return all fields as a set

  16. lazy val fields: Seq[(String, JsValue)]

    The fields of this JsObject in the order passed to the constructor

  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    JsObject → AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def keys: Set[String]

    Return all keys

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    JsValue → AnyRef → Any
  28. def transform[A <: JsValue](rds: Reads[A]): JsResult[A]

    Transforms this node into a JsResult using provided Json transformer Reads[JsValue]

    Transforms this node into a JsResult using provided Json transformer Reads[JsValue]

    Definition Classes
    JsReadable
  29. def validate[A](implicit rds: Reads[A]): JsResult[A]

    Tries to convert the node into a JsResult[T] (Success or Error).

    Tries to convert the node into a JsResult[T] (Success or Error). An implicit Reads[T] must be defined.

    Definition Classes
    JsValueJsReadable
  30. def validateOpt[A](implicit rds: Reads[A]): JsResult[Option[A]]
    Definition Classes
    JsValue
  31. lazy val value: Map[String, JsValue]

    The value of this JsObject as an immutable map.

  32. def values: Iterable[JsValue]

    Return all values

  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from JsValue

Inherited from JsReadable

Inherited from AnyRef

Inherited from Any

Ungrouped