Packages

sealed abstract class JsonObject extends Serializable

A mapping from keys to JSON values that maintains insertion order.

Source
JsonObject.scala
Linear Supertypes
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. JsonObject
  2. Serializable
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def +:(field: (String, Json)): JsonObject

    Prepend the given key-value pair.

  2. abstract def add(key: String, value: Json): JsonObject

    Insert the given key and value.

  3. abstract def apply(key: String): Option[Json]

    Return the JSON value associated with the given key.

  4. abstract def contains(key: String): Boolean

    Return true if there is an association with the given key.

  5. abstract def isEmpty: Boolean

    Return true if there are no associations.

  6. abstract def keys: Iterable[String]

    Return all keys in insertion order.

  7. abstract def mapValues(f: (Json) => Json): JsonObject

    Transform all associated JSON values.

  8. abstract def remove(key: String): JsonObject

    Remove the field with the given key (if it exists).

  9. abstract def size: Int

    Return the number of associations.

  10. abstract def toIterable: Iterable[(String, Json)]

    Return all key-value pairs in insertion order.

  11. abstract def toMap: Map[String, Json]

    Convert to a map.

    Convert to a map.

    Note

    This conversion does not maintain insertion order.

  12. abstract def traverse[F[_]](f: (Json) => F[Json])(implicit F: Applicative[F]): F[JsonObject]

    Traverse Json values.

  13. abstract def values: Iterable[Json]

    Return all associated values in insertion order.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JsonObject toany2stringadd[JsonObject] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JsonObject, B)
    Implicit
    This member is added by an implicit conversion from JsonObject toArrowAssoc[JsonObject] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def deepMerge(that: JsonObject): JsonObject

    Perform a deep merge of this JSON object with another JSON object.

    Perform a deep merge of this JSON object with another JSON object.

    Objects are merged by key, values from the argument JSON take precedence over values from this JSON. Nested objects are recursed.

    See Json.deepMerge for behavior of merging values that are not objects.

  9. def ensuring(cond: (JsonObject) => Boolean, msg: => Any): JsonObject
    Implicit
    This member is added by an implicit conversion from JsonObject toEnsuring[JsonObject] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (JsonObject) => Boolean): JsonObject
    Implicit
    This member is added by an implicit conversion from JsonObject toEnsuring[JsonObject] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: => Any): JsonObject
    Implicit
    This member is added by an implicit conversion from JsonObject toEnsuring[JsonObject] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): JsonObject
    Implicit
    This member is added by an implicit conversion from JsonObject toEnsuring[JsonObject] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def equals(that: Any): Boolean

    Definition Classes
    JsonObject → AnyRef → Any
  15. final def filter(pred: ((String, Json)) => Boolean): JsonObject

    Filter by keys and values.

  16. final def filterKeys(pred: (String) => Boolean): JsonObject

    Filter by keys.

  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JsonObject toStringFormat[JsonObject] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def hashCode(): Int

    Definition Classes
    JsonObject → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def kleisli: Kleisli[Option, String, Json]

    Return a Kleisli arrow that gets the JSON value associated with the given field.

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def nonEmpty: Boolean

    Return true if there is at least one association.

  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. final def toList: List[(String, Json)]

    Return all key-value pairs in insertion order as a list.

  29. final def toString(): String

    Definition Classes
    JsonObject → AnyRef → Any
  30. final def toVector: Vector[(String, Json)]

    Return all key-value pairs in insertion order as a vector.

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

Deprecated Value Members

  1. def [B](y: B): (JsonObject, B)
    Implicit
    This member is added by an implicit conversion from JsonObject toArrowAssoc[JsonObject] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromJsonObject to any2stringadd[JsonObject]

Inherited by implicit conversion StringFormat fromJsonObject to StringFormat[JsonObject]

Inherited by implicit conversion Ensuring fromJsonObject to Ensuring[JsonObject]

Inherited by implicit conversion ArrowAssoc fromJsonObject to ArrowAssoc[JsonObject]

Operations for accessing contents

Conversions to other collection types

Operations that transform the JSON object

Equality and other operations

Ungrouped