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. Protected

Instance Constructors

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

Value Members

  1. def +(otherField: (String, JsValue)): JsObject

    Adds one field to the JsObject

  2. 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.

  3. def -(otherField: String): JsObject

    Removes one field from the JsObject

  4. 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
  5. 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
  6. def canEqual(other: Any): Boolean
    Definition Classes
    JsObject → Equals
  7. def deepMerge(other: JsObject): JsObject

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

  8. def equals(other: Any): Boolean
    Definition Classes
    JsObject → Equals → AnyRef → Any
  9. def fieldSet: Set[(String, JsValue)]

    Return all fields as a set

  10. def fields: Seq[(String, JsValue)]

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

  11. def hashCode(): Int
    Definition Classes
    JsObject → AnyRef → Any
  12. def keys: Set[String]

    Return all keys

  13. def productElementNames: Iterator[String]
    Definition Classes
    Product
  14. def toString(): String
    Definition Classes
    JsValue → AnyRef → Any
  15. 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
  16. 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
    JsReadable
  17. def validateOpt[A](implicit rds: Reads[A]): JsResult[Option[A]]
    Definition Classes
    JsValue
  18. def value: Map[String, JsValue]

    The value of this JsObject as an immutable map.

  19. def values: Iterable[JsValue]

    Return all values