Class/Object

io.circe

Json

Related Docs: object Json | package circe

Permalink

sealed abstract class Json extends Product with Serializable

A data type representing possible JSON values.

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

Abstract Value Members

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

    Permalink
  2. abstract def asBoolean: Option[Boolean]

    Permalink
  3. abstract def asNull: Option[Unit]

    Permalink
  4. abstract def asNumber: Option[JsonNumber]

    Permalink
  5. abstract def asObject: Option[JsonObject]

    Permalink
  6. abstract def asString: Option[String]

    Permalink
  7. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  8. abstract def foldWith[X](folder: Folder[X]): X

    Permalink

    Reduce this JSON value with the given Json.Folder.

  9. abstract def isArray: Boolean

    Permalink
  10. abstract def isBoolean: Boolean

    Permalink
  11. abstract def isNull: Boolean

    Permalink
  12. abstract def isNumber: Boolean

    Permalink
  13. abstract def isObject: Boolean

    Permalink
  14. abstract def isString: Boolean

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

    Permalink
  16. abstract def mapBoolean(f: (Boolean) ⇒ Boolean): Json

    Permalink
  17. abstract def mapNumber(f: (JsonNumber) ⇒ JsonNumber): Json

    Permalink
  18. abstract def mapObject(f: (JsonObject) ⇒ JsonObject): Json

    Permalink
  19. abstract def mapString(f: (String) ⇒ String): Json

    Permalink
  20. abstract def productArity: Int

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

    Permalink
    Definition Classes
    Product
  22. abstract def withArray(f: (Vector[Json]) ⇒ Json): Json

    Permalink
  23. abstract def withBoolean(f: (Boolean) ⇒ Json): Json

    Permalink
  24. abstract def withNull(f: ⇒ Json): Json

    Permalink
  25. abstract def withNumber(f: (JsonNumber) ⇒ Json): Json

    Permalink
  26. abstract def withObject(f: (JsonObject) ⇒ Json): Json

    Permalink
  27. abstract def withString(f: (String) ⇒ Json): Json

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def \\(key: String): List[Json]

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

    Permalink

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

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

    Permalink

    Attempts to decode this JSON value to another data type.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Permalink

    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.

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

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

    Permalink

    Universal equality derived from our type-safe equality.

    Universal equality derived from our type-safe equality.

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

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

    Permalink

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

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

    Permalink

    The catamorphism for the JSON value data type.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def hcursor: HCursor

    Permalink

    Construct a successful cursor from this JSON value.

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def name: String

    Permalink

    The name of the type of the JSON value.

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

    Permalink
    Definition Classes
    AnyRef
  21. final def noSpaces: String

    Permalink

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

  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

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

    Permalink

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

  25. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  26. def productPrefix: String

    Permalink
    Definition Classes
    Product
  27. final def spaces2: String

    Permalink

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

  28. final def spaces4: String

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  30. final def toString(): String

    Permalink

    Compute a String representation for this JSON value.

    Compute a String representation for this JSON value.

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped