JNothing

org.json4s.JNothing
case object JNothing extends JValue

Attributes

Source
JValue.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
class JValue
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
JNothing.type

Members list

Type members

Types

type Values = None.type

Attributes

Source
JValue.scala

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

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

The mirrored *-type

The mirrored *-type

Attributes

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

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Value members

Concrete methods

def values: Values

Return unboxed values from JSON

Return unboxed values from JSON

Example:

JObject(JField("name", JString("joe")) :: Nil).values == Map("name" -> "joe")

Attributes

Source
JValue.scala

Inherited methods

def ++(other: JValue): JValue

Concatenate with another JSON. This is a concatenation monoid: (JValue, ++, JNothing)

Concatenate with another JSON. This is a concatenation monoid: (JValue, ++, JNothing)

Example:

JArray(JInt(1) :: JInt(2) :: Nil) ++ JArray(JInt(3) :: Nil) ==
JArray(List(JInt(1), JInt(2), JInt(3)))

Attributes

Inherited from:
JValue
Source
JValue.scala
def apply(i: Int): JValue

Return nth element from JSON. Meaningful only to JArray, JObject and JField. Returns JNothing for other types.

Return nth element from JSON. Meaningful only to JArray, JObject and JField. Returns JNothing for other types.

Example:

JArray(JInt(1) :: JInt(2) :: Nil)(1) == JInt(2)

Attributes

Inherited from:
JValue
Source
JValue.scala
def children: List[JValue]

Return direct child elements.

Return direct child elements.

Example:

JArray(JInt(1) :: JInt(2) :: Nil).children == List(JInt(1), JInt(2))

Attributes

Inherited from:
JValue
Source
JValue.scala
def diff(other: JValue): Diff

Return a diff.

Return a diff.

Attributes

See also

org.json4s.Diff#diff

Inherited from:
Diffable (hidden)
Source
Diff.scala
def fromProduct(p: Product): MirroredMonoType

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

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

Attributes

Inherited from:
Singleton
Source
Mirror.scala
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def toOption: Option[JValue]

When this org.json4s.JValue is a org.json4s.JNothing or a org.json4s.JNull, this method returns scala.None When it has a value it will return scala.Some

When this org.json4s.JValue is a org.json4s.JNothing or a org.json4s.JNull, this method returns scala.None When it has a value it will return scala.Some

Attributes

Inherited from:
JValue
Source
JValue.scala
def toSome: Option[JValue]

When this org.json4s.JValue is a org.json4s.JNothing, this method returns scala.None When it has a value it will return scala.Some

When this org.json4s.JValue is a org.json4s.JNothing, this method returns scala.None When it has a value it will return scala.Some

Attributes

Inherited from:
JValue
Source
JValue.scala