Json

io.circe.Json
See theJson companion object
sealed abstract class Json extends Product with Serializable

A data type representing possible JSON values.

Attributes

Companion:
object
Source:
Json.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala
def foldWith[X](folder: Folder[X]): X

Reduce this JSON value with the given Json.Folder.

Reduce this JSON value with the given Json.Folder.

Attributes

Source:
Json.scala
def hashCode(): Int

Use implementations provided by case classes.

Use implementations provided by case classes.

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala
def withNull(f: => Json): Json

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Attributes

Source:
Json.scala

Concrete methods

final def \\(key: String): List[Json]

Attributes

Source:
Json.scala
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.

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

Attributes

Source:
Json.scala
final def as[A](implicit d: Decoder[A]): Result[A]

Attempts to decode this JSON value to another data type.

Attempts to decode this JSON value to another data type.

Attributes

Source:
Json.scala
final def asAccumulating[A](implicit d: Decoder[A]): AccumulatingResult[A]

Attempts to decode this JSON value to another data type, accumulating failures.

Attempts to decode this JSON value to another data type, accumulating failures.

Attributes

Source:
Json.scala

Drop the entries with a null value if this is an object or array.

Drop the entries with a null value if this is an object or array.

Attributes

Source:
Json.scala
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.

Attributes

Source:
Json.scala

Drop the entries with an empty value if this is an array or object.

Drop the entries with an empty value if this is an array or object.

Note that this does not apply recursively.

Attributes

Source:
Json.scala

Drop the entries with a null value if this is an object.

Drop the entries with a null value if this is an object.

Note that this does not apply recursively.

Attributes

Source:
Json.scala
final override def equals(that: Any): Boolean

Universal equality derived from our type-safe equality.

Universal equality derived from our type-safe equality.

Attributes

Definition Classes
Equals -> Any
Source:
Json.scala
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."

Attributes

Source:
Json.scala
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.

The catamorphism for the JSON value data type.

Attributes

Source:
Json.scala
final def hcursor: HCursor

Construct a successful cursor from this JSON value.

Construct a successful cursor from this JSON value.

Attributes

Source:
Json.scala
final def name: String

The name of the type of the JSON value.

The name of the type of the JSON value.

Attributes

Source:
Json.scala
final def noSpaces: String

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

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

Attributes

Source:
Json.scala

Pretty-print this JSON value to a string with no spaces, with object keys sorted alphabetically.

Pretty-print this JSON value to a string with no spaces, with object keys sorted alphabetically.

Attributes

Source:
Json.scala
final def printWith(p: Printer): String

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

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

Attributes

Source:
Json.scala
final def spaces2: String

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

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

Attributes

Source:
Json.scala

Pretty-print this JSON value to a string indentation of two spaces, with object keys sorted alphabetically.

Pretty-print this JSON value to a string indentation of two spaces, with object keys sorted alphabetically.

Attributes

Source:
Json.scala
final def spaces4: String

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

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

Attributes

Source:
Json.scala

Pretty-print this JSON value to a string indentation of four spaces, with object keys sorted alphabetically.

Pretty-print this JSON value to a string indentation of four spaces, with object keys sorted alphabetically.

Attributes

Source:
Json.scala
final override def toString: String

Compute a String representation for this JSON value.

Compute a String representation for this JSON value.

Attributes

Definition Classes
Any
Source:
Json.scala

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product