Packages

final case class Obj(fields: Chunk[(String, Json)]) extends Json with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Obj
  2. Serializable
  3. Product
  4. Equals
  5. Json
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Obj(fields: Chunk[(String, Json)])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +:(entry: (String, Json)): Obj
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def add(key: String, value: Json): Obj
  6. final def arrayOrObject[X](or: => X, jsonArray: (Chunk[Json]) => X, jsonObject: (Obj) => X): X
    Definition Classes
    Json
  7. final def as[A](implicit decoder: JsonDecoder[A]): Either[String, A]
    Definition Classes
    Json
  8. def asArray: Option[Chunk[Json]]
    Definition Classes
    Json
  9. def asBoolean: Option[Boolean]
    Definition Classes
    Json
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def asNull: Option[Unit]
    Definition Classes
    Json
  12. def asNumber: Option[Num]
    Definition Classes
    Json
  13. def asObject: Some[Obj]
    Definition Classes
    ObjJson
  14. def asString: Option[String]
    Definition Classes
    Json
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  16. def contains(key: String): Boolean
  17. final def delete(cursor: JsonCursor[_, _]): Either[String, Json]

    Deletes json node specified by given cursor

    Deletes json node specified by given cursor

    cursor

    Cursor which specifies node to delete

    returns

    Json without specified node if node specified by cursor exists, error otherwise

    Definition Classes
    Json
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def equals(that: Any): Boolean
    Definition Classes
    Json → AnyRef → Any
  20. val fields: Chunk[(String, Json)]
  21. def filter(pred: ((String, Json)) => Boolean): Obj
  22. def filterKeys(pred: (String) => Boolean): Obj
  23. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  24. final def foldDown[A](initial: A)(f: (A, Json) => A): A
    Definition Classes
    Json
  25. final def foldDownSome[A](initial: A)(pf: PartialFunction[(A, Json), A]): A
    Definition Classes
    Json
  26. final def foldUp[A](initial: A)(f: (A, Json) => A): A
    Definition Classes
    Json
  27. final def foldUpSome[A](initial: A)(pf: PartialFunction[(A, Json), A]): A
    Definition Classes
    Json
  28. def get(key: String): Option[Json]
  29. final def get[A <: Json](cursor: JsonCursor[_, A]): Either[String, A]
    Definition Classes
    Json
  30. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. final def hashCode(): Int
    Definition Classes
    Json → AnyRef → Any
  32. final def intersect(that: Json): Either[String, Json]

    Intersects JSON values.

    Intersects JSON values. If both values are Obj or Arr method returns intersections of its fields/elements, otherwise it returns error

    returns

    Intersected json if type are compatible, error otherwise

    Definition Classes
    Json
  33. def isEmpty: Boolean
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. lazy val keys: Chunk[String]
  36. def mapArray(f: (Chunk[Json]) => Chunk[Json]): Json
    Definition Classes
    Json
  37. def mapArrayValues(f: (Json) => Json): Json
    Definition Classes
    Json
  38. def mapBoolean(f: (Boolean) => Boolean): Json
    Definition Classes
    Json
  39. def mapNumber(f: (BigDecimal) => BigDecimal): Json
    Definition Classes
    Json
  40. def mapObject(f: (Obj) => Obj): Obj
    Definition Classes
    ObjJson
  41. def mapObjectEntries(f: ((String, Json)) => (String, Json)): Obj
    Definition Classes
    ObjJson
  42. def mapObjectKeys(f: (String) => String): Obj
    Definition Classes
    ObjJson
  43. def mapObjectValues(f: (Json) => Json): Obj
    Definition Classes
    ObjJson
  44. def mapString(f: (String) => String): Json
    Definition Classes
    Json
  45. def mapValues(f: (Json) => Json): Obj
  46. def merge(that: Obj): Obj
  47. final def merge(that: Json): Json

    - merging objects results in a new objects with all pairs of both sides, with the right hand side being used on key conflicts

    - merging objects results in a new objects with all pairs of both sides, with the right hand side being used on key conflicts

    - merging arrays results in all of the individual elements being merged

    - scalar values will be replaced by the right hand side

    Definition Classes
    Json
  48. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  49. def nonEmpty: Boolean
  50. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  52. def productElementNames: Iterator[String]
    Definition Classes
    Product
  53. final def relocate(from: JsonCursor[_, _], to: JsonCursor[_, _]): Either[String, Json]

    Relocates Json node from location specified by from cursor to location specified by to cursor.

    Relocates Json node from location specified by from cursor to location specified by to cursor.

    from

    Cursor which specifies node to relocate

    to

    Cursor which specifies location where to relocate node

    returns

    Json with relocated node if node specified by cursors exist, error otherwise

    Definition Classes
    Json
  54. def remove(key: String): Obj
  55. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  56. def toMap: Map[String, Json]
  57. def toString(): String
    Definition Classes
    Json → AnyRef → Any
  58. final def transformAt[A <: Json](cursor: JsonCursor[_, A])(f: (A) => Json): Either[String, Json]

    Transforms json node specified by given cursor

    Transforms json node specified by given cursor

    A

    refined node type

    cursor

    Cursor which specifies node to transform

    f

    Function used to transform node

    returns

    Json with transformed node if node specified by cursor exists, error otherwise

    Definition Classes
    Json
  59. final def transformDown(f: (Json) => Json): Json
    Definition Classes
    Json
  60. final def transformDownSome(pf: PartialFunction[Json, Json]): Json
    Definition Classes
    Json
  61. final def transformUp(f: (Json) => Json): Json
    Definition Classes
    Json
  62. final def transformUpSome(pf: PartialFunction[Json, Json]): Json
    Definition Classes
    Json
  63. lazy val values: Chunk[Json]
  64. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  65. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  66. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  67. final def widen: Json
    Definition Classes
    Json

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Json

Inherited from AnyRef

Inherited from Any

Ungrouped