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
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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink
  2. abstract def asBoolean: Option[Boolean]

    Permalink
  3. abstract def asNumber: Option[JsonNumber]

    Permalink
  4. abstract def asObject: Option[JsonObject]

    Permalink
  5. abstract def asString: Option[String]

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

    Permalink
    Definition Classes
    Equals
  7. abstract def isArray: Boolean

    Permalink
  8. abstract def isBoolean: Boolean

    Permalink
  9. abstract def isNull: Boolean

    Permalink
  10. abstract def isNumber: Boolean

    Permalink
  11. abstract def isObject: Boolean

    Permalink
  12. abstract def isString: Boolean

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

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

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

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

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

    Permalink
  18. abstract def productArity: Int

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

    Permalink
    Definition Classes
    Product

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 arrayOrObject[X](or: ⇒ X, jsonArray: (List[Json]) ⇒ X, jsonObject: (JsonObject) ⇒ X): X

    Permalink

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

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

    Permalink

    Attempts to decode this JSON value to another data type.

  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def cursor: Cursor

    Permalink

    Construct a cursor from this JSON value.

  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 fold[X](jsonNull: ⇒ X, jsonBoolean: (Boolean) ⇒ X, jsonNumber: (JsonNumber) ⇒ X, jsonString: (String) ⇒ X, jsonArray: (List[Json]) ⇒ X, jsonObject: (JsonObject) ⇒ X): X

    Permalink

    The catamorphism for the JSON value data type.

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

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

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

    Permalink

    Construct a cursor with history from this JSON value.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def name: String

    Permalink

    The name of the type of the JSON value.

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

    Permalink
    Definition Classes
    AnyRef
  20. final def noSpaces: String

    Permalink

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

  21. final def notify(): Unit

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

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

    Permalink

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

  24. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  25. def productPrefix: String

    Permalink
    Definition Classes
    Product
  26. final def spaces2: String

    Permalink

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

  27. final def spaces4: String

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  29. 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
  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def withArray(f: (List[Json]) ⇒ Json): Json

    Permalink
  34. final def withBoolean(f: (Boolean) ⇒ Json): Json

    Permalink
  35. final def withNumber(f: (JsonNumber) ⇒ Json): Json

    Permalink
  36. final def withObject(f: (JsonObject) ⇒ Json): Json

    Permalink
  37. final def withString(f: (String) ⇒ Json): Json

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped