Null

zio.json.ast.Json.Null
case object Null extends Json

Attributes

Source
ast.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Json
class Object
trait Matchable
class Any
Show all
Self type
Null.type

Members list

Type members

Inherited types

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredMonoType = this.type

The mirrored *-type.

The mirrored *-type.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredType = this.type

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Inherited and Abstract types

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

override def asNull: Some[Unit]

Attributes

Definition Classes
Source
ast.scala

Inherited methods

final def arrayOrObject[X](or: => X, jsonArray: Chunk[Json] => X, jsonObject: Obj => X): X

Attributes

Inherited from:
Json
Source
ast.scala
final def as[A](implicit decoder: JsonDecoder[A]): Either[String, A]

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala
final def delete(cursor: JsonCursor[_, _]): Either[String, Json]

Deletes json node specified by given cursor

Deletes json node specified by given cursor

Value parameters

cursor

Cursor which specifies node to delete

Attributes

Returns

Json without specified node if node specified by cursor exists, error otherwise

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

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Json -> Any
Inherited from:
Json
Source
ast.scala
final def foldDown[A](initial: A)(f: (A, Json) => A): A

Attributes

Inherited from:
Json
Source
ast.scala
final def foldDownSome[A](initial: A)(pf: PartialFunction[(A, Json), A]): A

Attributes

Inherited from:
Json
Source
ast.scala
final def foldUp[A](initial: A)(f: (A, Json) => A): A

Attributes

Inherited from:
Json
Source
ast.scala
final def foldUpSome[A](initial: A)(pf: PartialFunction[(A, Json), A]): A

Attributes

Inherited from:
Json
Source
ast.scala

Creates a new instance of type T with elements taken from product p.

Creates a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
final def get[A <: Json](cursor: JsonCursor[_, A]): Either[String, A]

Attributes

Inherited from:
Json
Source
ast.scala
final override def hashCode: Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Json -> Any
Inherited from:
Json
Source
ast.scala
final def intersect(that: Json): Either[String, Json]

Intersects JSON values. If both values are Obj or Arr method returns intersections of its fields/elements, otherwise it returns error

Intersects JSON values. If both values are Obj or Arr method returns intersections of its fields/elements, otherwise it returns error

Attributes

Returns

Intersected json if type are compatible, error otherwise

Inherited from:
Json
Source
ast.scala
def mapArray(f: Chunk[Json] => Chunk[Json]): Json

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala
def mapNumber(f: BigDecimal => BigDecimal): Json

Attributes

Inherited from:
Json
Source
ast.scala
def mapObject(f: Obj => Obj): Json

Attributes

Inherited from:
Json
Source
ast.scala
def mapObjectEntries(f: ((String, Json)) => (String, Json)): Json

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala
def mapString(f: String => String): Json

Attributes

Inherited from:
Json
Source
ast.scala
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 arrays results in all of the individual elements being merged
  • scalar values will be replaced by the right hand side

Attributes

Inherited from:
Json
Source
ast.scala

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
final def relocate(from: JsonCursor[_, _], to: JsonCursor[_, _]): Either[String, Json]

Relocates Json node from location specified by from cursor to location specified by to cursor.

Relocates Json node from location specified by from cursor to location specified by to cursor.

Value parameters

from

Cursor which specifies node to relocate

to

Cursor which specifies location where to relocate node

Attributes

Returns

Json without specified node if node specified by cursor exists, error otherwise

Inherited from:
Json
Source
ast.scala
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Json -> Any
Inherited from:
Json
Source
ast.scala
final def transformAt[A <: Json](cursor: JsonCursor[_, A])(f: A => Json): Either[String, Json]

Transforms json node specified by given cursor

Transforms json node specified by given cursor

Type parameters

A

refined node type

Value parameters

cursor

Cursor which specifies node to transform

f

Function used to transform node

Attributes

Returns

Json with transformed node if node specified by cursor exists, error otherwise

Inherited from:
Json
Source
ast.scala
final def transformDown(f: Json => Json): Json

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala
final def transformUp(f: Json => Json): Json

Attributes

Inherited from:
Json
Source
ast.scala

Attributes

Inherited from:
Json
Source
ast.scala
final def widen: Json

Attributes

Inherited from:
Json
Source
ast.scala

Implicits

Implicits

implicit val codec: JsonCodec[Null.type]

Attributes

Source
ast.scala
implicit val decoder: JsonDecoder[Null.type]

Attributes

Source
ast.scala
implicit val encoder: JsonEncoder[Null.type]

Attributes

Source
ast.scala