JsNothing

case object JsNothing extends JsValue

It's a special Json value that represents 'nothing'. Inserting nothing in a json leaves the json unchanged. Functions that return a JsValue, return JsNothing when no element is found, what makes them total on their arguments.

val obj = JsObj.empty obj("a") == JsNothing obj.inserted("a",JsNothing) == obj

trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JsValue
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels = EmptyTuple
Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple
Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror
type MirroredMonoType = Singleton
Inherited from:
Singleton
type MirroredType = Singleton
Inherited from:
Singleton

Value members

Inherited methods

def fromProduct(p: Product): MirroredMonoType
Inherited from:
Singleton
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product