io.circe

Json

sealed abstract class Json extends Product with Serializable

A data type representing possible JSON values.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Json
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Json()

Abstract Value Members

  1. abstract def asArray: Option[Vector[Json]]

  2. abstract def asBoolean: Option[Boolean]

  3. abstract def asNumber: Option[JsonNumber]

  4. abstract def asObject: Option[JsonObject]

  5. abstract def asString: Option[String]

  6. abstract def canEqual(that: Any): Boolean

    Definition Classes
    Equals
  7. abstract def isArray: Boolean

  8. abstract def isBoolean: Boolean

  9. abstract def isNull: Boolean

  10. abstract def isNumber: Boolean

  11. abstract def isObject: Boolean

  12. abstract def isString: Boolean

  13. abstract def mapArray(f: (Vector[Json]) ⇒ Vector[Json]): Json

  14. abstract def mapBoolean(f: (Boolean) ⇒ Boolean): Json

  15. abstract def mapNumber(f: (JsonNumber) ⇒ JsonNumber): Json

  16. abstract def mapObject(f: (JsonObject) ⇒ JsonObject): Json

  17. abstract def mapString(f: (String) ⇒ String): Json

  18. abstract def productArity: Int

    Definition Classes
    Product
  19. abstract def productElement(n: Int): Any

    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def \\(key: String): List[Json]

  7. final def arrayOrObject[X](or: ⇒ X, jsonArray: (Vector[Json]) ⇒ X, jsonObject: (JsonObject) ⇒ X): X

    Run on an array or object or return the given default.

  8. final def as[A](implicit d: Decoder[A]): Result[A]

    Attempts to decode this JSON value to another data type.

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def deepMerge(that: Json): Json

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

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

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

    Null, Array, Boolean, String and Number are treated as values, and values from the argument JSON completely replace values from this JSON.

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. final def equals(that: Any): Boolean

    Universal equality derived from our type-safe equality.

    Universal equality derived from our type-safe equality.

    Definition Classes
    Json → Equals → AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def findAllByKey(key: String): List[Json]

    Recursively return all values matching the specified key.

    Recursively return all values matching the specified key.

    The Play docs, from which this method was inspired, reads: "Lookup for fieldName in the current object and all descendants."

  16. final def fold[X](jsonNull: ⇒ X, jsonBoolean: (Boolean) ⇒ X, jsonNumber: (JsonNumber) ⇒ X, jsonString: (String) ⇒ X, jsonArray: (Vector[Json]) ⇒ X, jsonObject: (JsonObject) ⇒ X): X

    The catamorphism for the JSON value data type.

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def hcursor: HCursor

    Construct a successful cursor from this JSON value.

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def name: String

    The name of the type of the JSON value.

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def noSpaces: String

    Pretty-print this JSON value to a string with no spaces.

  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. final def pretty(p: Printer): String

    Pretty-print this JSON value to a string using the given pretty-printer.

  27. def productIterator: Iterator[Any]

    Definition Classes
    Product
  28. def productPrefix: String

    Definition Classes
    Product
  29. final def spaces2: String

    Pretty-print this JSON value to a string indentation of two spaces.

  30. final def spaces4: String

    Pretty-print this JSON value to a string indentation of four spaces.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. final def toString(): String

    Compute a String representation for this JSON value.

    Compute a String representation for this JSON value.

    Definition Classes
    Json → AnyRef → Any
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def withArray(f: (Vector[Json]) ⇒ Json): Json

  37. final def withBoolean(f: (Boolean) ⇒ Json): Json

  38. final def withNumber(f: (JsonNumber) ⇒ Json): Json

  39. final def withObject(f: (JsonObject) ⇒ Json): Json

  40. final def withString(f: (String) ⇒ Json): Json

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped