Packages

sealed abstract class Json extends AnyRef

This AST of JSON is made available so that arbitrary JSON may be included as part of a business object, it is not used as an intermediate representation, unlike most other JSON libraries. It is not advised to .map or .mapOrFail from these decoders, since a higher performance decoder is often available.

Beware of the potential for DOS attacks, since an attacker can provide much more data than is perhaps needed.

Also beware of converting Num (a BigDecimal) into any other kind of number, since many of the stdlib functions are non-total or are known DOS vectors (e.g. calling .toBigInteger on a "1e214748364" will consume an excessive amount of heap memory). JsonValue / Json / JValue

Self Type
Json
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Json
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def as[A](implicit decoder: JsonDecoder[A]): Either[String, A]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. final def equals(that: Any): Boolean
    Definition Classes
    Json → AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def foldDown[A](initial: A)(f: (A, Json) => A): A
  11. final def foldDownSome[A](initial: A)(pf: PartialFunction[(A, Json), A]): A
  12. final def foldUp[A](initial: A)(f: (A, Json) => A): A
  13. final def foldUpSome[A](initial: A)(pf: PartialFunction[(A, Json), A]): A
  14. final def get[A <: Json](cursor: JsonCursor[_, A]): Either[String, A]
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def hashCode(): Int
    Definition Classes
    Json → AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. 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

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    Json → AnyRef → Any
  24. final def transformDown(f: (Json) => Json): Json
  25. final def transformDownSome(pf: PartialFunction[Json, Json]): Json
  26. final def transformUp(f: (Json) => Json): Json
  27. final def transformUpSome(pf: PartialFunction[Json, Json]): Json
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def widen: Json

Inherited from AnyRef

Inherited from Any

Ungrouped